about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util/main.js
diff options
context:
space:
mode:
authorStarfall <root@starfall.blue>2020-03-01 11:49:29 -0600
committerStarfall <root@starfall.blue>2020-03-01 11:49:29 -0600
commit22a55edc158352003a3953964c9d332a60c86428 (patch)
treea26bd8374e4b8264dbae815fbfbd3b91ae51450b /app/javascript/flavours/glitch/util/main.js
parent5902299384d15249fe4b84b8761d4a49f3c7f6fd (diff)
parent553a16c6f8a74677336114b6379e1db1d19cb81c (diff)
Merge branch 'glitch'
Diffstat (limited to 'app/javascript/flavours/glitch/util/main.js')
-rw-r--r--app/javascript/flavours/glitch/util/main.js2
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}`);
     }
   }