Skip to content

Rendering of the 404 page is broken #602

Description

@armanbilge

https://typelevel.org/doesnt/exist

The problem is that Laika generates the HTML for 404.md using relative paths, but the page may be rendered from any path. This may be something that we need to fix upstream in Laika.

Activity

  1. synan-mannan commented on Feb 25, 2026

    @synan-mannan

    Hi @armanbilge,

    I’m Mannan.
    From my understanding of the issue, the root cause seems to be that Laika generates relative paths for assets, which causes the 404 page to break when rendered from arbitrary routes.

    Wouldn’t this mean that the issue should ideally be addressed in the Laika repository rather than here?

    I just wanted to confirm whether this is something that should be fixed upstream, and also i would love to solve this issue could you please assign it me.

  2. armanbilge commented on Feb 27, 2026

    @armanbilge
    MemberAuthor

    @synan-mannan hi, thanks for your interest! Before we assign the issue to you, could you complete the Google Summer of Code onboarding activity? Thank you!

    https://github.com/typelevel/gsoc-onboarding

  3. synan-mannan commented on Feb 27, 2026

    @synan-mannan

    Sure @armanbilge , I have created a PR regarding my onboarding on:

    https://github.com/typelevel/gsoc-onboarding

  4. abby-ql commented on Feb 28, 2026

    @abby-ql
    Contributor

    @armanbilge hi, I made a PR in laika to fix this issue. it worked when i test locally and in the html source the 404 page is now having /main.css rather than main/css . Would really appreciate any feedback, thank you!

    now:

    Image

    before:

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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