Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 4c9f9ef

Browse files
committed
Pass location hash as well
1 parent e189ba4 commit 4c9f9ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/js/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
bootReady.migration_check = true
4141
} else {
4242
if (kzVersion) {
43-
location.href = 'https://web.telegram.org/' + kzVersion.toLowerCase() + '/'
43+
location.href = 'https://web.telegram.org/' + kzVersion.toLowerCase() + '/' + location.hash
4444
return
4545
}
4646
$.getJSON('https://telegram.org/webogram_migrate').success(function(result) {
@@ -49,7 +49,7 @@
4949
ConfigStorage.set({
5050
kz_version: kzVersion
5151
})
52-
location.href = 'https://web.telegram.org/' + kzVersion.toLowerCase() + '/'
52+
location.href = 'https://web.telegram.org/' + kzVersion.toLowerCase() + '/' + location.hash
5353
return
5454
} else {
5555
bootReady.migration_check = true

0 commit comments

Comments
 (0)