Linking to MF does not work when not logged in

0
I call a MF directly with a URL. E.g. --> localhost:8080/p/portal/message/515662157333973161When I am already logged in and navigate to this url the MF is executed. However, when I am not logged in it will redirect me to --> http://localhost:8080/login.html#/portal/message/515662157333973161Which, in our case, shows the default login page.We use a custom login action to add some IP filtering. I was expecting the request to trigger the custom login action or to at least navigate to the anomyous home page. Does anyone knows what happens and how I can correctly direct the request when not logged in?
asked
1 answers
1

When an unauthenticated user hits a deep link, Mendix runtime intercepts the request before any application logic runs and redirects to login.html that's why your custom login action is never triggered.

fix: set the Sign-in page to your custom login page. This tells the Mendix runtime to redirect unauthenticated requests there instead of the default login.html, which will then trigger your custom login action (including your IP filtering logic).


answered