Browse Source

Fix `/web` redirecting to `/web/web` in web UI (#13128)

Fixes #13127
master
ThibG 4 years ago
committed by GitHub
parent
commit
0f07218e53
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/main.js

+ 1
- 1
app/javascript/mastodon/main.js View File

@ -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}`);
}
}

Loading…
Cancel
Save