Current Behaviour
When accessing a URL to a document in workspaces such as:
https://\{DOMAIN}/projects/{projectName}/fr/documents.html#file-file://XXXXXXXXXXXX
the # character is not encoded during the redirect to the authentication page. Because of this, some of the context of the url is lost during the redirect process.
Expected Behaviour
During the redirect to the authentication page, the # character in the URL should be properly encoded.
Steps to Reproduce
- Ensure the user is not authenticated and access a document URL similar to:
https://\{DOMAIN}/projects/{projectName}/fr/documents.html#file-file://XXXXXXXXXXXX or https://demo.ametys.org/projects/projet-d-exemple-prive/fr/documents.html#file-file://86542b48-f7ec-49e6-8b2b-5054cee1a3bd - Observe the redirect to the login/authentication page :
https://demo.ametys.org/projects/projet-d-exemple-prive/_authenticate?requestedURL=/projects/projet-d-exemple-prive/fr/documents.html{*}#{*}file-file://86542b48-f7ec-49e6-8b2b-5054cee1a3bd
Bug : The "#" symbol isn't encoded to "%23"