Single sign on with OpenIdConnect in .net core - redirect URL

I am using SSO against Azure AD in my .net core application. Used OpenIdConnect for authentication.

Currently after login it is redirected the home page. But I want to redirect it to the specific controller which user clicks before login.

If mysite.com is my site and if user clicks on mysite.com/help it should be redirected to help page after sso.

If user clicks on mysite.com/forum, after sso it should be redirected to forum page.

How to achieve this?