New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMPROVE] UI of page not found #13757
Conversation
@thiagosanchz do we have a design for a 404 page? what do you think about this one? |
@thiagosanchz can you provide the design here? |
Often times I find myself in a 404 on the electron client, and after restarting the client, there is no way to go back. Maybe add a home button that goes to the main route? |
If you already have a design on paper, then I can try to replicate it on. |
Maybe model it more after https://rocket.chat/404 ? |
@MartinSchoeler do you have the SVG version of the image from https://rocket.chat/404 ? |
Guys, please, use this SVG to 404 pages. Thanks! |
Can we also add a "Go Back" button maybe under the text, or on the top left? (if in the electron client)
|
@wreiske Will add this... |
@engelgabriel Please review. |
Wow this is 1000x better. 😍 This would be a fantastic bit of polish to 1.0 ;) |
client/routes/pageNotFound.html
Outdated
<h3>{{_ "Oops_page_not_found"}}</h3> | ||
<p>{{_ "Sorry_page_you_requested_does_not_exists_or_was_deleted"}}</p> | ||
<section class = "page-not-found-container content-background-color"> | ||
<span class = "error-404">{{errorcode}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need a helper here. Since the template's name is pageNotFound
, it will be only applied for HTTP 404 cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right...I did not overlook that
client/routes/pageNotFound.js
Outdated
errorcode() { | ||
return '404'; | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need a helper here. Since the template's name is pageNotFound
, it will be only applied for HTTP 404 cases.
LGTM @ggazzo |
client/routes/pageNotFound.js
Outdated
Template.pageNotFound.events({ | ||
'click .page-not-found-button-home'(e) { | ||
e.preventDefault(); | ||
window.location.href = '/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be done using FlowRouter
. I'm submitting a fix though
Closes #13756
Drastically improves the UI of 404 pageNotFound.html
Initial State
Final Status