-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Opening redirected URL (through routeRules) does not redirect and breaks page #25743
Comments
Start a new pull request in StackBlitz Codeflow. |
(Seems to be a trailing-slash issue, and reproducible with Nitro on its own - I don't think it's related to #25391.) |
Let's track in unjs/nitro#2146. |
@danielroe I think it was related to #25391 only because that adds all the redirects as static pages, prompting them to be generated via |
Ah - nice find. But it also seems to be reproducible in nitro on its own. |
Also note #23813, which might be related (haven't investigated). |
Environment
Reproduction
https://stackblitz.com/edit/nuxt-issues-25743
[Vue warn]: Component is missing template or render function.
Describe the bug
When adding a redirect in the routeRules, e.g.
routeRules: { '/support-me/': { redirect: { to: '/sponsors/', statusCode: 301 } } }
and then trying to directly access the page through the browser, the redirect does not happen and the page breaks instead.Additional context
Related PR: #25391
Logs
No response
The text was updated successfully, but these errors were encountered: