Skip to content
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

fileserver: browse: do not encode the paths in breadcrumbs and page title #4410

Merged
merged 2 commits into from
Nov 23, 2021

Conversation

mohammed90
Copy link
Member

Breadcrumbs use the .Name field as the visual item while .Path is the data-oriented item. Earlier implementation used the URL path as-is, which could have been in escaped format. This PR un-escapes the URL path to use as for the .Name.

Fixes #4409

@francislavoie
Copy link
Member

@SlavikCA would you be able to build from this branch to confirm the fix? Thanks!

Copy link
Member

@francislavoie francislavoie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me!

@francislavoie francislavoie added bug 🐞 Something isn't working under review 🧐 Review is pending before merging labels Nov 10, 2021
@francislavoie francislavoie added this to the v2.5.0 milestone Nov 10, 2021
@mohammed90 mohammed90 changed the title fileserver: browse: do not encode the paths in breacrumbs and page title fileserver: browse: do not encode the paths in breadcrumbs and page title Nov 15, 2021
@mholt
Copy link
Member

mholt commented Nov 22, 2021

@SlavikCA Can you confirm this fixes it for you?

@SlavikCA
Copy link
Contributor

Thank you very much!

Yes, just tested and both page title and breadcrumbs looks good now.

@francislavoie francislavoie merged commit 1e10f6f into master Nov 23, 2021
@francislavoie francislavoie deleted the fix-4409 branch November 23, 2021 08:13
@mholt mholt removed the under review 🧐 Review is pending before merging label Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.4.6 regression: file_browser displays path unencoded
4 participants