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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rubyjasmin
Copy link

@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! After taking a closer look, seems like we don't need to replace the admin route to begin with, 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.

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