Default Redirect after login based on destination I have custom routing and a user controller in a module that redirects authenticated users to a private area on a site.

It works fine when users are coming from the login page - redirects them to a dashboard at a custom user page - but I would like users to continue to the page they are requesting if they come to the site from a link.

It is common for users to share links to internal content and they are then having to log in and get to the link from their dashboard which is causing some annoyance. 

I have reasonably simple routing for the user page and a controller in my module that redirects users to their userPage. Is their a way to have this not redirect depending on the link they are requesting?
You mite need to add 'destination' query parameter for shared link.

For example: https://www.drupal.org/user/login?destination=search/site/destinations