I want to preferably in Javascript a user to be redirected in this case from https://app.salonized.com/c/5304/dashboard (the page after logining in) to this page https://app.salonized.com/franchise/reports/overview . So a specific url to another url. I tried some redirects but I lack the knowledge to get this done properly.
I tried this method but I think im doing it wrong:
if window.location. = "https://app.salonized.com/mobile" else window.location.href = "https://app.salonized.com/franchise/reports/overview"
Just need some proper synax.
'=' for setting and use '===' for comparing
if(window.location.href === "https://app.salonized.com/mobile"){
window.location.href = "https://app.salonized.com/franchise/reports/overview";
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.