openstreetmap-website icon indicating copy to clipboard operation
openstreetmap-website copied to clipboard

#3532 Created a 404 Page

Open anant2526 opened this issue 1 month ago • 3 comments

I made a beautiful / minimal 404 page which is made as I was told .

anant2526 avatar Nov 21 '25 07:11 anant2526

Told by who? Is there some background to this that I'm missing?

tomhughes avatar Nov 21 '25 08:11 tomhughes

I gather that this is about the discussion at https://github.com/openstreetmap/openstreetmap-website/issues/3532. @anant2526, please make sure to reference previous discussions so that we can tell the context better. I see that you put the issue number in the PR title, but that's easy to miss.

You are providing an HTML document, but this doesn't automatically work. It needs to be integrated in the application correctly. I did a quick fix at https://github.com/openstreetmap/openstreetmap-website/compare/master...pablobm:openstreetmap-website:404-page, but it's still not good enough. It needs to follow the template and layout conventions, like the current error page does. See app/views/errors/not_found.html.erb. If you are new to Ruby on Rails, I recommend you read the documentation (eg: https://guides.rubyonrails.org/layouts_and_rendering.html).

As for the design itself, it looks nice but it has issues. For example the text is not visible in small screens:

Current This PR
404-mobile-current 404-mobile-pr

I recommend that you look into how we use Bootstrap in this application, as it has features to help with responsive design.

pablobm avatar Nov 21 '25 12:11 pablobm

Yes we definitely want something that uses rails and bootstrap and our stylesheets rather than completely separate HTML with inline styles.

Also whatever design we use for the 404 page should be applied to other error pages as well.

tomhughes avatar Nov 21 '25 12:11 tomhughes

Hi @anant2526, thanks for making this pull request. There are several large changes that would need to be made before we could merge this, as other people have described above.

I'm going to close this PR, but you are welcome to open a fresh one when you are ready.

gravitystorm avatar Dec 17 '25 15:12 gravitystorm