Skip to content

[FIX]: Use absolute URLs instead of relative URLs in 404.html to avoid broken links #394

@frogcat

Description

@frogcat

Specs

Other

Errors

Hello,

I noticed that some links in the 404.html
page are written as relative URLs.
When the page is displayed as a 404 error, these links may resolve incorrectly and result in broken links.

For example, when visiting:
https://w3c.github.io/dpv/2.2/

The 404 page is shown, and the links such as Search and Changelog point to incorrect paths like:
https://w3c.github.io/dpv/2.2/2.2/search.html
https://w3c.github.io/dpv/2.2/2.2/changelog.html

These should instead point to:
https://w3c.github.io/dpv/2.2/search.html
https://w3c.github.io/dpv/2.2/changelog.html

To prevent this issue, it would be better to replace the relative URLs in 404.html with absolute URLs (e.g., starting with https://w3c.github.io/dpv/ or the appropriate base URL).

Would it be possible to update those links?

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions