Skip to content

Conversation

@dertieran
Copy link
Contributor

@dertieran dertieran commented Sep 15, 2018

This feature makes the 404 page more useful. Fixes #485.

I'm not to sure if this is already the best we can do but it's a start.
I'm happy for suggestions/improvements.

To-do

  • Add an entry in the readme with screenshot

Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is overly specific, it shouldn’t work only for a subset of URLs but for all 404s. Just split the pathname and query each part (perhaps skipping or modifying parts we recognize)

The solution was overly specific, so we changed it to work for all 404s.
We ignore some paths that are never reachable (right now `tree` and `blob`).
For now it also doesn't change `blob` to `commits` anymore.
@dertieran
Copy link
Contributor Author

@bfred-it Okay I made it less specific.

Right now it ignores tree and blob.
I also removed the general change from blob to commits, I'm not sure if it is correct to always do that.

Here are 404 pages I found/looked at, if you have more please let me know.

  • non-existent issue
  • non-existent repo
  • non-existent user Is this useful?

@fregante
Copy link
Member

fregante commented Oct 3, 2018

WIP

@dertieran dertieran deleted the useful-404-page branch November 14, 2018 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants