Skip to content

Commit

Permalink
[FIX] Missing page not found (#6673)
Browse files Browse the repository at this point in the history
[FIX] Missing page "not found"
  • Loading branch information
Prakhar tripathi authored and rodrigok committed Apr 17, 2018
1 parent 88c8070 commit 3115ec6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/routes/pageNotFound.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template name="pageNotFound">
<h1>{{_ "Error_404"}}</h1>
<h3>{{_ "Oops_page_not_found"}}</h3>
<p>{{_ "Sorry_page_you_requested_does_not_exists_or_was_deleted"}}</p>
</template>
7 changes: 7 additions & 0 deletions client/routes/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,10 @@ FlowRouter.route('/register/:hash', {
// BlazeLayout.render 'logoLayout', { render: 'invalidSecretURL' }
}
});

FlowRouter.notFound = {
action() {
BlazeLayout.render('pageNotFound');
}
};

6 changes: 6 additions & 0 deletions packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@
"Enter_Normal": "Normal mode (send with Enter)",
"Enter_to": "Enter to",
"Error": "Error",
"Error_404": "Error:404",
"Error_RocketChat_requires_oplog_tailing_when_running_in_multiple_instances": "Error: Rocket.Chat requires oplog tailing when running in multiple instances",
"Error_RocketChat_requires_oplog_tailing_when_running_in_multiple_instances_details": "Please make sure your MongoDB is on ReplicaSet mode and MONGO_OPLOG_URL environment variable is defined correctly on the application server",
"error-action-not-allowed": "__action__ is not allowed",
"error-application-not-found": "Application not found",
"error-archived-duplicate-name": "There's an archived channel with name '__room_name__'",
Expand Down Expand Up @@ -1463,6 +1466,8 @@
"Opens_a_channel_group_or_direct_message": "Opens a channel, group or direct message",
"optional": "optional",
"or": "or",
"Oops_page_not_found": "Oops, page not found",
"Open_your_authentication_app_and_enter_the_code": "Open your authentication app and enter the code. You can also use one of your backup codes.",
"Or_talk_as_anonymous": "Or talk as anonymous",
"Order": "Order",
"Original": "Original",
Expand Down Expand Up @@ -1823,6 +1828,7 @@
"Snippet_Added": "Created on %s",
"Snippet_Messages": "Snippet Messages",
"Snippeted_a_message": "Created a snippet __snippetLink__",
"Sorry_page_you_requested_does_not_exists_or_was_deleted": "Sorry, page you requested does not exists or was deleted!",
"Sort_by_activity": "Sort by Activity",
"Sound": "Sound",
"Sound_File_mp3": "Sound File (mp3)",
Expand Down

0 comments on commit 3115ec6

Please sign in to comment.