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 is my site and if user clicks on it should be redirected to help page after sso.

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

How to achieve this?