diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-04-04 13:10:55 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-04-04 18:10:55 +0100 |
commit | ac0c7e30ca0b27a18525a810be107f056bf8e801 (patch) | |
tree | 7e5cc32fb2994da234efcfc6bc792280bfdab72b /webapp/actions/global_actions.jsx | |
parent | cbb6a305968afcff2daecc6011615c2aea65be43 (diff) | |
download | chat-ac0c7e30ca0b27a18525a810be107f056bf8e801.tar.gz chat-ac0c7e30ca0b27a18525a810be107f056bf8e801.tar.bz2 chat-ac0c7e30ca0b27a18525a810be107f056bf8e801.zip |
PLT-3958 Updated title for permalink error page (#5970)
Diffstat (limited to 'webapp/actions/global_actions.jsx')
-rw-r--r-- | webapp/actions/global_actions.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
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)); } ); } |