about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-02-22 01:27:34 +0100
committerGitHub <noreply@github.com>2020-02-22 01:27:34 +0100
commit0f07218e53bf581127cdcf5fbf12d9c207ace8d7 (patch)
tree466387c06612d797aefd970c4ccbac9d21c9d34c
parent983ab40086da909f2c693b74ed36735aab40dbcb (diff)
Fix `/web` redirecting to `/web/web` in web UI (#13128)
Fixes #13127
-rw-r--r--app/javascript/mastodon/main.js2
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}`);
     }
   }