mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 17:29:14 +00:00
Route flavours ~ URLs
This commit is contained in:
@@ -12,8 +12,8 @@ function main() {
|
||||
if (window.history && history.replaceState) {
|
||||
const { pathname, search, hash } = window.location;
|
||||
const path = pathname + search + hash;
|
||||
if (!(/^\/web[$/]/).test(path)) {
|
||||
history.replaceState(null, document.title, `/web${path}`);
|
||||
if (!(/^\/\$glitch[$/]/).test(path)) {
|
||||
history.replaceState(null, document.title, `/$glitch${path}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user