about summary refs log tree commit diff stats
path: root/src/assets/javascripts
diff options
context:
space:
mode:
authorAdam P <rflashster@gmail.com>2023-02-20 13:46:48 +0100
committerGitHub <noreply@github.com>2023-02-20 13:46:48 +0100
commit07871281c38a32537968b5749ed0b9e3556139ef (patch)
treecaf6625c45c71beee04bee95cf5dbcc59739e0ee /src/assets/javascripts
parentAdded WolfreeAlpha https://github.com/libredirect/libredirect/issues/425 (diff)
downloadlibredirect-07871281c38a32537968b5749ed0b9e3556139ef.zip
Preserve URL hash on wikiless redirection
Diffstat (limited to 'src/assets/javascripts')
-rw-r--r--src/assets/javascripts/services.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index ecbf5726..d998a25b 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -475,7 +475,7 @@ function redirect(url, type, initiator, forceRedirection) {
 				// 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]
-			return link
+			return link + url.hash
 		}
 		case "proxiTok": {
 			if (url.pathname.startsWith('/email')) return