-
Notifications
You must be signed in to change notification settings - Fork 63
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
404 page does not reference error URL #2064
Labels
bug
Something isn't working
Comments
Hi @batzlerg good catch. This really needs to be adjusted. Feel free to create a pull request with the correction. |
opened a PR to address: #2083 |
emersonlaurentino
pushed a commit
that referenced
this issue
Oct 30, 2023
## What's the purpose of this pull request? display the correct missing URL when hitting a 404 page #2064 ## How it works? use `asPath` which Next provides as the alias for that particular 404 response ## How to test it? 1. visit path which doesn't exist 2. see that the URL is displayed in the body of the page ### Starters Deploy Preview <!--- Add a link to a deploy preview from `gatsby.store` AND `nextjs.store` with this branch being used. ---> <!--- Tip: You can get an installable version of this branch from the CodeSandbox generated when this PR is created. ---> ## References <!--- Spread the knowledge: is there any content you used to create this PR that is worth sharing? ---> <!--- Extra tip: adding references to related issues or mentioning people important to this PR may be good for the documentation and reviewing process --->
thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The 404 page always references "This app could not find url /404" instead of the missing page
Expected behavior
Current behavior
Steps to reproduce
A step-by-step on how to reproduce the bug behavior.
Possible Solution
use
router.asPath
instead ofrouter.query.from
, or fix/implement whatever is supposed to populaterouter.query.from
when the page redirects to 404.tsxAdditional context
The text was updated successfully, but these errors were encountered: