client: avoid double redirect on login
This commit is contained in:
parent
b2c6f4d3d8
commit
9daa1e6d1b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const SessionHandler: React.FC<{ }> = function () {
|
|||
}, [dispatch]);
|
||||
|
||||
function redirectToLogin() {
|
||||
window.location.replace(MYRADIO_NON_API_BASE + "/MyRadio/login/?next=" + redirect_url);
|
||||
window.location.replace(MYRADIO_NON_API_BASE + "/MyRadio/login/?next=" + encodeURIComponent(MYRADIO_NON_API_BASE + "/MyRadio/timeslot/?next=" + redirect_url));
|
||||
}
|
||||
|
||||
function redirectToTimeslotSelect() {
|
||||
|
|
Loading…
Reference in a new issue