-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/private link on external storage #2170
Conversation
} | ||
if (this.highlightedFile.isMounted()) { | ||
const file = encodeURIComponent(this.highlightedFile.name) | ||
return window.location.href.split('?')[0] + `?scrollTo=${file}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be edited to also enable navigating directly into folder in case it is one. Same for the "classic" private link with id. But that is a task for different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I missunderstand - but the url generated on the sidebar will bring any other user to the exactly same point. It would be very inconsistent if it would be different. Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/5537/
|
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/5541/
|
… after login. The route is stored in the session storage
0c62157
to
7997bc2
Compare
Description
This PR holds two changes:
In case of an mounted external storage the privateLink holdsing the fileid is useless. Each user will have a different fileid. In this case we use the current browser url as private link. Not really private anymore - but it works
In case any url to phoenix is used in an unauthenticated browser the route will be stored in the session storage of the browser and will be used as soon as the login process is finished, This replaces the private link specific storage.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: