Preserve URL hash on wikiless redirection

This commit is contained in:
Adam P 2023-02-20 13:46:48 +01:00 committed by GitHub
parent 982b0a643e
commit 07871281c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ function redirect(url, type, initiator, forceRedirection) {
// wikiless doesn't have mobile view support yet // wikiless doesn't have mobile view support yet
} }
for (let i = 0; i < GETArguments.length; i++) link += (i == 0 ? "?" : "&") + GETArguments[i][0] + "=" + GETArguments[i][1] for (let i = 0; i < GETArguments.length; i++) link += (i == 0 ? "?" : "&") + GETArguments[i][0] + "=" + GETArguments[i][1]
return link return link + url.hash
} }
case "proxiTok": { case "proxiTok": {
if (url.pathname.startsWith('/email')) return if (url.pathname.startsWith('/email')) return