sourcebot icon indicating copy to clipboard operation
sourcebot copied to clipboard

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

Open brendan-kellam opened this issue 10 months ago • 10 comments

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

brendan-kellam avatar Jan 30 '26 22:01 brendan-kellam

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

imsarang avatar Jan 31 '26 19:01 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?

imsarang avatar Feb 01 '26 19:02 imsarang

@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

brendan-kellam avatar Feb 01 '26 19:02 brendan-kellam

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

imsarang avatar Feb 01 '26 20:02 imsarang

@brendan-kellam @msukkari The below is the PR for the fix. Please check this out PR: https://github.com/sourcebot-dev/sourcebot/pull/837

imsarang avatar Feb 01 '26 21:02 imsarang

Thanks, I will get to this tomorrow

brendan-kellam avatar Feb 02 '26 05:02 brendan-kellam

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

imsarang avatar Feb 12 '26 14:02 imsarang

Hi @brendan-kellam can you check the pr linked to this? PR: https://github.com/sourcebot-dev/sourcebot/pull/837

imsarang avatar Feb 13 '26 17:02 imsarang

@brendan-kellam @brendan-kellam @msukkari @msukkari

imsarang avatar Feb 21 '26 15:02 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

imsarang avatar Feb 28 '26 19:02 imsarang