The SAML20 module ignores your target URL because the cont= value isn’t passed in the exact format it requires. If the continue URL is invalid, not URL‑encoded, missing the leading /, or points to something Mendix can’t open, SAML falls back to the home page.
format should be:/SSO/login?cont=%2Fp%2Fviewreport%2F<GUID>
Notes:
/p/...That’s why everything after /SSO/ looked “ignored.”
I hope this helps, If you need future help I can assist.
Hi,
This behavior is expected when using the SAML SSO module with forced redirect.
When you redirect everything to /SSO, the SAML module takes control of the authentication flow. After successful login, it redirects users to the default landing page, unless a properly encoded continuation URL is passed and handled correctly.
The reason your microflow URL is ignored is because:
cont parameter when it is properly URL-encoded./p/ prefix directly.Instead of:
/SSO/login?cont=p/viewreport/12345678
You must URL-encode the continuation:
/SSO/login?cont=%2Fp%2Fviewreport%2F12345678
Additionally:
/p/ if already configured.If forced redirect is implemented via index.html → /SSO, the original requested URL is lost unless explicitly preserved and encoded before redirecting.
A more robust solution is:
The SSO module is not ignoring the URL — it is defaulting to the home page because the continuation parameter is not correctly encoded or handled. Proper URL encoding of the cont parameter resolves this issue.
I've tried a lot of things over the years, but never got the deeplinking to work in combination with SSO. Hopefully you will success Brian and let us know how you finally fixed it.
Hi Brian,
Have you check the documentation?
For debugging purposes, you might also try to navigate to a page without any page parameters first, just to make eliminate other possibilities for failure (entity access, non-existing objects, etc.).
The issue is caused by the double leading slash in the continue URL (for example //p/viewreport/...). This results in the “Ambiguous URI empty segment” error, and Mendix falls back to the home page. That’s why it looks like everything after /SSO/ is being ignored.
The fix is simple: in the DeepLink module, set the constant EnableLeadingSlash to false.
This prevents Mendix from automatically adding an extra leading slash, so the continue URL will no longer contain // and SAML will process it correctly.
If this resolves the issue, please close the topic.
I was able to manage it like this: