When I try to open a deep link where the user has to log in, in an application with a custom login page, I will be redirected to the login.html page of the deep link module. This is a page without the styling of the custom login page, which seems odd to users and is not acceptable for them.
It would be nice if I would be able to use a deeplink where a user has to login, that can be used in combination with a custom login page.
This is what worked for me:
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);
}
}
Hope this helps
I hope this gets implemented soon.