Opening authorized deep links with custom login page - Mendix Forum

Opening authorized deep links with custom login page


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. 

2 answers

This is what worked for me:

  1. Give your Custom Login Page a URL e.g. ‘login’. Set the Deeplink.LoginLocation constant to “../../p/login?cont=” 
  2. This is not enough as once the user logs in, the redirect is not correct. To fix this add the following javascript (using an HTMLSnippet or a JavascriptSnippet) from the app store to your custom login page = () => {
  if ('?cont=') ) {
     window.location =
  } else {;

Hope this helps


I hope this gets implemented soon.