Right, this was a tricky one…
I implemented this in Mx 8 but I presume the same is required for Mx 9 so hopefully this helps.
I did this some time ago so hopefully I don’t forget any steps.
Essentially you need to make 3 changes for this to work correctly –
Paste in the below script –
window.mx.afterLoginAction = () => {
if ( window.location.search.startsWith('?cont=') ) {
window.location = window.mx.homeUrl+decodeURIComponent(window.location.search.substring(6))
} else {
window.mx.redirect(window.mx.homeUrl);
}
}
This will redirect to the URL provided on the deeplink once successfully authenticated.
Give that a kick and hopefully it solves the problem.
Cheers,
Jason
Hey Kevin Soh,
you can check this https://forum.mendix.com/link/questions/116851