mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 06:08:33 -05:00
[PR #2434] [MERGED] feat: Add path setting to share links (resourceAccessToken) #30891
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2434
Author: @NHClaessens
Created: 2/8/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @oschwartz10612
Base:
dev← Head:feature-share-link-redirect-path📝 Commits (7)
a9b0bd8Alter schema + add form fieldb84a799Adjust validation to allow creation with (optional) path94408aaAdd path onto redirectUrlad7dcddAdd translationsdb5d1d4Update postgres schemaffe1988Reset translations8483616Unstage ignored files📊 Changes
6 files changed (+32 additions, -3 deletions)
View changed files
📝
messages/en-US.json(+1 -0)📝
server/db/pg/schema/schema.ts(+1 -0)📝
server/db/sqlite/schema/schema.ts(+1 -0)📝
server/routers/accessToken/generateAccessToken.ts(+4 -1)📝
server/routers/resource/authWithAccessToken.ts(+6 -1)📝
src/components/CreateShareLinkForm.tsx(+19 -1)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Adds an optional
pathparameter to share links that allows specifying a custom redirect path when accessing a resource.This feature addresses a specific use case, if this change is not desired in the main branch, or if any changes are required, I would be more than happy to cooperate.
The use case in question:
/api/endpoint needs to be exposed, which is undesirableshare/xxxx)Changes Made
pathcolumn in theresourceAccessTokenschema in Postgres and SQLite schemas (optional field, so not a breaking change)pathvalueHow to test?
Access>Links(This is my first open-source contribution, thank you for your patience)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.