[Glitch] Add aliases for WebUI routes that were renamed in #16171

Port 11502ae46e to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2021-09-27 07:23:48 +02:00
parent b2dd2e95ad
commit 188d66c9a8
6 changed files with 43 additions and 27 deletions

View File

@ -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();