From ac0c7e30ca0b27a18525a810be107f056bf8e801 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 4 Apr 2017 13:10:55 -0400 Subject: PLT-3958 Updated title for permalink error page (#5970) --- webapp/actions/global_actions.jsx | 5 ++++- webapp/i18n/en.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx index 95d4d5676..2279a0b96 100644 --- a/webapp/actions/global_actions.jsx +++ b/webapp/actions/global_actions.jsx @@ -211,7 +211,10 @@ export function emitPostFocusEvent(postId, onSuccess) { link += 'town-square'; } - browserHistory.push('/error?message=' + encodeURIComponent(Utils.localizeMessage('permalink.error.access', 'Permalink belongs to a deleted message or to a channel to which you do not have access.')) + '&link=' + encodeURIComponent(link)); + const message = encodeURIComponent(Utils.localizeMessage('permalink.error.access', 'Permalink belongs to a deleted message or to a channel to which you do not have access.')); + const title = encodeURIComponent(Utils.localizeMessage('permalink.error.title', 'Message Not Found')); + + browserHistory.push('/error?message=' + message + '&title=' + title + '&link=' + encodeURIComponent(link)); } ); } diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index 448cb436d..96c330963 100755 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -1794,6 +1794,7 @@ "pending_post_actions.cancel": "Cancel", "pending_post_actions.retry": "Retry", "permalink.error.access": "Permalink belongs to a deleted message or to a channel to which you do not have access.", + "permalink.error.title": "Message Not Found", "post_attachment.collapse": "Show less...", "post_attachment.more": "Show more...", "post_body.commentedOn": "Commented on {name}{apostrophe} message: ", -- cgit v1.2.3-1-g7c22