Skip to content

fix(ui): unreachable custom views when admin route set to '/' #12812

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

Merged
merged 8 commits into from
Jun 26, 2025

Conversation

rubyjasmin
Copy link
Contributor

@rubyjasmin rubyjasmin commented Jun 15, 2025

Fixes #12811

Custom Views become unreachable when admin route is set to "/" because the forward slash of the current route gets removed before routing to custom view


Copy link
Member

@jacobsfletch jacobsfletch left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on @rubyjasmin! Seems like we might not need to replace the admin route to begin with, though, as it's already sanitized before being sent to getCustomViewByRoute. I'm going to make a few small changes to reflect this.

Then we also need a test for this to prevent future regression. I'll take care of this too.

fix
@jacobsfletch jacobsfletch merged commit 379fc12 into payloadcms:main Jun 26, 2025
227 of 231 checks passed
Copy link
Contributor

🚀 This is included in version v3.44.0

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.

Custom Views break when admin route is set to "/"
2 participants