client: avoid double redirect on login

This commit is contained in:
Marks Polakovs 2020-04-07 11:43:33 +02:00
parent b2c6f4d3d8
commit 9daa1e6d1b

View file

@ -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() {