canonical md link for 404 page
Anyone know why this appears in the source when you get a 404 page on the website?
<link rel="canonical" href="https://nodejs.org/en/404.md/">
The md file does not exist, so...broken link. Should be https://nodejs.org/en/404.html. I haven't spent time trying to find where this is generated, but didn't want to leave it unaddressed so...opening an issue.
Nothing obviously pops into my head. But here are my two hunches:
- Something baked into Metalsmith
- Something in the nginx config used to do the language detection/fallback in nodejs/build
This is definitely something in this repo. It looks that 404.md has permalink: false and this causes the issue. Unsure how to work around it.
This is still an issue. I'm not sure why it was closed.
I was not able to reproduce the outcome on the current version. Maybe someone can enlighten me.
- Open https://nodejs.org/fr/foo
-
<link rel="canonical" href="https://nodejs.org/fr/404.md/">is in the head, as the issue describes. An MD file that doesn't exist in the repo
AH! When I did cmd+f '404.md' it told me that there was nothing...
I was not able to reproduce the outcome on the current version. Maybe someone can enlighten me.
That's no reason to close the issue without writing any message.
Canonical links got removed from 404.