Skip to content

[FR] Improve 404 page when attempting to browse file that does not exist /browse #827

Description

@brendan-kellam

If I navigate to a path that does not exist when in the code browser, I hit the following error message:

Image

A user could hit this when switching branches, when a file has been deleted or moved from a branch, or other scenarios.

GitHub's 404 page:

Image

Activity

  1. imsarang commented on Jan 31, 2026

    @imsarang

    Hi, will look into this issue. @brendan-kellam @msukkari

  2. imsarang commented on Feb 1, 2026

    @imsarang
    Image

    got the above result when i attempted to reproduce the bug.
    Can you give more details on this
    @brendan-kellam @msukkari
    Not getting the option to switch branches.
    do i have to upgrade to a different plan for this?

  3. brendan-kellam commented on Feb 1, 2026

    @brendan-kellam
    ContributorAuthor

    @imsarang your screenshot is showing the /search path. This bug is in the /browse path - try making a search with results, clicking into a file, and then change the path in the URL bar to a file that does not exist. #822 adds branch switching

  4. imsarang commented on Feb 1, 2026

    @imsarang

    @brendan-kellam Got it thanks man!
    Will change the frontend of the screen with github design as inspiration.

  5. imsarang commented on Feb 1, 2026

    @imsarang

    @brendan-kellam @msukkari
    The below is the PR for the fix.
    Please check this out
    PR: #837

  6. brendan-kellam commented on Feb 2, 2026

    @brendan-kellam
    ContributorAuthor

    Thanks, I will get to this tomorrow

  7. imsarang commented on Feb 12, 2026

    @imsarang

    Hi @brendan-kellam @msukkari can you check this, ? it is a small addition as listed in the PR

  8. imsarang commented on Feb 13, 2026

    @imsarang

    Hi @brendan-kellam can you check the pr linked to this?
    PR: #837

  9. imsarang commented on Feb 21, 2026

    @imsarang
  10. imsarang commented on Feb 28, 2026

    @imsarang

    HI, why is this not getting reviewed? @brendan-kellam , can we close this?
    been like 2 months now
    fixed this 2 months ago!
    can be merged, very simple fix
    @brendan-kellam

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions