Deeplink to Umbraco content lost after login — redirects to homepage instead

Hi all,

If someone shares a direct link (deeplink) to specific content in the Umbraco back office — for example, a link to view a particular form entry — and the person opening the link isn’t logged in, they’re first redirected to the login page (as expected).

However, after logging in, instead of being taken to the original deeplinked content, they’re sent to the back office homepage/dashboard. This breaks the flow for editors trying to quickly view or act on shared items, and means they have to manually re-navigate to the content.

Is there a way to preserve the requested URL through the login process so users land on the intended page after authenticating?

Or has anyone worked around this in a custom implementation?

Would appreciate any insights or suggestions — thanks!