Hi
Depending on the SSO configuration you use, you may want to redirect the user to the deep link again after a successful login.
The DeepLink module has a constant named LoginLocation
which should enable this functionality for you.
Some documentation can be found here: https://docs.mendix.com/appstore/modules/deep-link/
Examples:
/SSO/login?f=true&cont=
/openid/login?continuation=