mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-30 12:02:02 +01:00
Fixed hash not being applied on login
This commit is contained in:
parent
80cf3fcdf6
commit
a2708c9113
@ -50,7 +50,11 @@
|
|||||||
if (json && json.success) {
|
if (json && json.success) {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const cameFrom = urlParams.get('from');
|
const cameFrom = urlParams.get('from');
|
||||||
window.location.href = cameFrom && !cameFrom.startsWith("http") ? cameFrom : './';
|
if (cameFrom && !cameFrom.startsWith("http")) {
|
||||||
|
window.location.href = cameFrom + (window.location.hash ? window.location.hash : '');
|
||||||
|
} else {
|
||||||
|
window.location.href = './';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return displayError('Login failed: ' + json.error);
|
return displayError('Login failed: ' + json.error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user