-
Notifications
You must be signed in to change notification settings - Fork 501
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
More and more links are running into a 404 #6629
Comments
If I remember correctly we moved Core_JavaScript_1.5_Guide pages to their current location in 2014 or 2015. I'm surprised there are still links to these old URLs out there. Out of curiosity, where did you find such links? |
Not sure where but for example stackoverflow answers link to it: https://stackoverflow.com/questions/5963045/can-syntax-errors-be-caught-in-javascript. |
Yes, it is worth fixing (and not too difficult) If we solve it this way, we can transfer this to mdn/content. |
I believe the best person for that would be either @Guyzeroth or @fiji-flo |
I found my general issue the links on caniuse are directed based on my
Personally prefer english docs so I would be fine with a none language specific redirect here :). But thats just me. |
@mdn/core-dev I have also run into this with |
First of all, we do track 404s and we add missing redirects for frequently visited urls from time to time. In the case of the URL you're citing, it appears that mdn/content#1857 removed the corresponding explicit redirects from yari/libs/fundamental-redirects/index.js Lines 1215 to 1225 in 3c9d149
And indeed, while /en-US/Core_JavaScript_1.5_Guide does NOT redirect (due to the missing @alexander-schranz If you like, you could try and open a PR in mdn/content to add the following redirects to the
This StackOverflow post links to
This is a separate issue, see e.g.:
I think only |
I think the main problem is that not all pages are translated so example https://developer.mozilla.org/docs/Web/CSS/aspect-ratio redirect me to https://developer.mozilla.org/de/docs/Web/CSS/aspect-ratio. So the strategy would need to be implemented there. If the page does not exist in the "target locale" it should not redirect to a 404 page. There are 2 possibilites. Show default locale / english content on https://developer.mozilla.org/de/docs/Web/CSS/aspect-ratio or do a redirect to |
In that case, you do already get a message "The page you requested doesn't exist in German but it exists in English": Note that the German locale will be archived in the next few weeks, so from that moment on there will be a redirect to |
Summary
More and more links to mdn docs are landing on page not found. Not sure what was restructered but it would be nice to track 404 and check where the content was moved.
URL
https://developer.mozilla.org/en-US/Core_JavaScript_1.5_Guide/Exception_Handling_Statements/try...catch_Statement
If I don't forget I will add here over the time more links, but I would recommend tracking the 404 and redirect them correctly.
Reproduction steps
Somewhere today I clicked a link like this: https://developer.mozilla.org/en-US/Core_JavaScript_1.5_Guide/Exception_Handling_Statements/try...catch_Statement and this content seems to be gone or not correctly redirected.
Expected behavior
Redirect to to most new page with for that content.
Actual behavior
ends in 404
Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Mac OS
Screenshot
No response
Anything else?
Filled a bug report because of: https://twitter.com/MozDevNet/status/1541832746334650369
Validations
The text was updated successfully, but these errors were encountered: