diff options
author | ThibG <thib@sitedethib.com> | 2020-02-22 01:27:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 01:27:34 +0100 |
commit | 0f07218e53bf581127cdcf5fbf12d9c207ace8d7 (patch) | |
tree | 466387c06612d797aefd970c4ccbac9d21c9d34c | |
parent | 983ab40086da909f2c693b74ed36735aab40dbcb (diff) |
Fix `/web` redirecting to `/web/web` in web UI (#13128)
Fixes #13127
-rw-r--r-- | app/javascript/mastodon/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/main.js b/app/javascript/mastodon/main.js index 5d73caa10..da4884fd3 100644 --- a/app/javascript/mastodon/main.js +++ b/app/javascript/mastodon/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}`); } } |