Skip to content

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

Merged
jasonvarga merged 1 commit into6.xfrom
cp-trailing-slashes
Feb 10, 2026
Merged

[6.x] Handle trailing slashes in CP Nav#13846
jasonvarga merged 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

@duncanmcclean duncanmcclean marked this pull request as ready for review February 6, 2026 17:50
@jasonvarga jasonvarga merged commit 1cff96c into 6.x Feb 10, 2026
12 checks passed
@jasonvarga jasonvarga deleted the cp-trailing-slashes branch February 10, 2026 16:58
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

2 participants