diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-09-27 07:23:48 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-09-28 13:07:27 +0200 |
commit | 188d66c9a81b508fd6c036aaff05048c47d1ea72 (patch) | |
tree | 00f509c4cd57077d3a23dd472d28c9a3970a93fa /app/javascript/flavours/glitch/actions/compose.js | |
parent | b2dd2e95ad13b31ae58eb23b2b0122519d8bc469 (diff) |
[Glitch] Add aliases for WebUI routes that were renamed in #16171
Port 11502ae46e4813bc23aeb5d03093a01d53991ab8 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/actions/compose.js')
-rw-r--r-- | app/javascript/flavours/glitch/actions/compose.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/compose.js b/app/javascript/flavours/glitch/actions/compose.js index ac6e7f0c4..96931546c 100644 --- a/app/javascript/flavours/glitch/actions/compose.js +++ b/app/javascript/flavours/glitch/actions/compose.js @@ -177,7 +177,7 @@ export function submitCompose(routerHistory) { }, }).then(function (response) { if (routerHistory - && routerHistory.location.pathname === '/publish' + && (routerHistory.location.pathname === '/publish' || routerHistory.location.pathname === '/statuses/new') && window.history.state && !getState().getIn(['compose', 'advanced_options', 'threaded_mode'])) { routerHistory.goBack(); |