-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
Using the /{slug} override for pages breaks Bolt redirects #3082
Comments
The UrlMatcher should handle trailing slashes...have you messed with that at all? Are you saying you have a |
I haven't touched any code, no. Having a
|
Oh I see I see. I cleaned up UrlMatcher a couple months ago. I'll have to go back and look. |
I see part of the problem, this is one of the last usages of |
I don't think this problem was here before, I've certainly never had it. I know that there has been a lot of work done on how routing functions so I think that's where this crops up.
Basically, if you make a
/{slug}
route, this overrides the system URLs that are required for Bolt to function. Going to/bolt
will show a 404 error because the page isn't found - and it will attempt to do a redirect to /bolt/ (regardless of subdirectory, but that's another issue). That's not terrible, but nowhere near as nice as the automatic redirect I was getting with previous installs.I know an easy solution is to change it to
/{slug}/
, as that will automate the redirect to to/bolt/
, but I can't do that for this particular project due to another bug with menus not havingcurrent
set properly if the routes have trailing slashes.The text was updated successfully, but these errors were encountered: