diff options
author | ThibG <thib@sitedethib.com> | 2020-02-22 01:27:34 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-02-25 14:30:43 +0100 |
commit | 2f2b48b227304d0f0a28dd4867e84af10b8097ad (patch) | |
tree | e6c97dfd5a14860b9c825b1c84fb1dd84ada6581 /app/javascript/flavours/glitch/util | |
parent | 85933bc9ff5869e69403315a30c3027d59c7e60d (diff) |
[Glitch] Fix `/web` redirecting to `/web/web` in web UI
Port 0f07218e53bf581127cdcf5fbf12d9c207ace8d7 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/util')
-rw-r--r-- | app/javascript/flavours/glitch/util/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/util/main.js b/app/javascript/flavours/glitch/util/main.js index b76826481..1fdb9ff2b 100644 --- a/app/javascript/flavours/glitch/util/main.js +++ b/app/javascript/flavours/glitch/util/main.js @@ -12,7 +12,7 @@ function main() { if (window.history && history.replaceState) { const { pathname, search, hash } = window.location; const path = pathname + search + hash; - if (!(/^\/web[$/]/).test(path)) { + if (!(/^\/web($|\/)/).test(path)) { history.replaceState(null, document.title, `/web${path}`); } } |