Repository navigation
feat: open permanent links as a guest - #3908
Merged
Merged
Conversation
JammingBen
force-pushed
the
feat/guest-permanent-links
branch
4 times, most recently
from
October 20, 2026 07:23
4999eb9 to
38e9baf
Compare
JammingBen
marked this pull request as ready for review
October 20, 2026 08:10
Restores an active guest session on the private link route and resolves the resource by walking up to the guest share root. Also allows guests to copy permanent links.
JammingBen
force-pushed
the
feat/guest-permanent-links
branch
from
October 20, 2026 13:08
38e9baf to
4d43d44
Compare
AlexAndBear
requested changes
Oct 20, 2026
AlexAndBear
left a comment
Member
There was a problem hiding this comment.
Tested this in the browser. Copying and opening permanent links as a guest works nicely for files, folders and the share root, and users and public links behave like before. Found a few things though:
- Links into a guest's other shares don't resolve. With two shares for the same guest, links into any share except the one the session was opened with show the "invalid link" card + Log in, although the guest can browse that share.
useGetResourceContext.ts:45/:54only walks up toauthStore.guestSpaceId, but the guest token covers all shares of that email. - An app URL without the drive alias ends the guest session. E.g.
/text-editor?shareId=…&fileId=…:addMissingDriveAliasAndItem(AppWrapper.vue:346) now resolves for guests but builds a user route (contextRouteName: 'files-spaces-generic'), so the guest session gets cleared and the guest is locked out until they get a new link. On main the editor just showed an error and the session survived. - Expired guest session on
/f/sends the guest to the IdP login (authService.ts:366), while guest routes go to the renewal page. I'd send/f/to renewal as well, guests can't log in at the IdP anyway. - Minor: the "Log in" button (
resolvePrivateLink.vue:122) usesrouter.push('/login'), so Back from the IdP lands on/loginand bounces right back. It also ignoresoptions.loginUrl, whichaccessDenied.vueandlogout.vuerespect.
Member
Author
|
Thanks, I fixed points 1, 2, and 4. Point 3. is a deliberate choice. Unlike guest routes, permanent links can't be identified as guest routes, so I took the most defensive approach here, which is to only treat such a link as a guest if there is an active guest session. In case of an expired one, the guest needs to renew it via their email. |
AlexAndBear
approved these changes
Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restores an active guest session on the private link route and resolves the resource by walking up to the guest share root. Also allows guests to copy permanent links.
closes #3817