-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix missing CSS when 404 server Response redirects to a custom 404 page #7946
Fix missing CSS when 404 server Response redirects to a custom 404 page #7946
Conversation
🦋 Changeset detectedLatest commit: 77aae41 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this. Besides the merge conflicts, this lgtm
I will fix the conflicts. |
Good catch! I'm guessing the conflicts are coming from #7754 which was merged quite recently. Please check out that PR. It might have fixed this issue already? |
I also thought your PR might have fixed the issue, so I made some tests, but the problem was still showing up. I believe that the line In my tests, the problem was being caused because a route other than I just could reproduce this error using ssr with |
I made a new commit merging the branches and changing a little bit the behavior of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the thorough update and adjusting to fix the updated logic! This change makes a lot of sense and looks good to me!
Thanks for finding and addressing this! |
Changes
Closes #7910
The regression was introduced here #7703 because of a typo.
This PR changes the variable used in
#createRenderContext
back to the correct one:errorRouteData
.The change was simple (but really hard to find) and I also added some tests to prevent this error from happening again.
Testing
One test to check imports in 404 redirections to a custom 404 page using
contentCollections
.Docs
n/a