Skip to content

[6.x] Handle trailing slashes in CP Nav#13846

Open
duncanmcclean wants to merge 1 commit into6.xfrom
cp-trailing-slashes
Open

[6.x] Handle trailing slashes in CP Nav#13846
duncanmcclean wants to merge 1 commit into6.xfrom
cp-trailing-slashes

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where breadcrumbs and the active nav item was missing in the CP when trailing slashes are being enforced.

This was happening because request()->url() strips off the trailing slash, but the value we're comparing it against includes the trailing slash.

I had to spin up a site on Laravel Forge to reproduce the issue.

Fixes #13842

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URL::enforceTrailingSlashes() breaks CP breadcrumbs and CP Preferences sub items

1 participant