Skip to content

The 404 page home link fallback seems to break on some nested URLs #1781

@emmadesilva

Description

@emmadesilva

Using './' seems to be causing troubles.

If you are on /page/foo/ it reloads the page, and on /page/foo moves to /page. First case is definitely wrong, second is also not good as we want to redirect to root. Maybe we need a / fallback instead, that does break when Hyde is in a subdirectory, but redirecting to the main company page seems to be better as subdirectory deployment is less common than 404's happening on nested pages.

Edit: Remember, this fallback is only activated when there is no index route, so it is still more graceful to try to redirect to the domain root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions