Unable to handle default home page logic with new deep link logic in mendix10

0
Hello All, I have achieved deeplink functionality without deeplink module in mendix 10.6.13 version. Now facing issue when user is already logged in application, it is working perfectly but when trying first time in browser it is going in application default home page so basically i need to handle this in show default page microflow in navigation, how i can bifurcate whether request is coming from depplink url or sso login. Please suggest how we can achieve this in mendix 10. i refer below url . https://community.mendix.com/link/space/studio-pro/questions/132036
asked
1 answers
1

Hi Raju,

o handle deep link functionality in Mendix 10.6.13 without using the Deeplink module and ensure users are redirected to the correct page instead of the default home page when they are not logged in, you need to modify the Show Default Page microflow in the navigation settings. The key challenge is differentiating between a deep link request and an SSO login. To achieve this, you can check for deep link parameters in the URL using the getRequestHeaders Java action from the Community Commons module to retrieve the Referrer or Original Request URL. If the user is not logged in, store the deep link request temporarily in a non-persistent entity or session attribute and then redirect them to the login page. After successful authentication, retrieve the stored deep link and navigate the user to the intended page instead of the default home page. In the Show Default Page microflow, introduce a decision to check whether a deep link request exists. If found, extract its parameters and redirect accordingly; otherwise, proceed with the normal login process. If your app uses SSO, verify whether the session contains a deep link reference. If an SSO login is detected without a deep link, the user should be redirected to the standard home page. This approach ensures seamless navigation for deep link users while maintaining standard login functionality.

 

Hope it helps!

answered