Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Redirection after Login/Logout (ReturnURL)

(0) ShareShare
ReportReport
Posted on by 650

Hi,

I am having trouble with correctly setting the ReturnURL after logout and the ReturnURL after login in my Portal.

in D365 Portals, how do I effectively set up to achieve the following:

  • Once a user successfully logs in, he shall be directed to a specific page of the Portal (e.g. Knowledge Base)
  • Once a user logs out and logs in again, he shall always be directed to a specific page of the Portal (e.g. Knowledge Base) EVEN IF he logs out from some other site (e.g. Support)

I have tried with various Site Settings, but none of them takes a permanent effect.

Thank you.

*This post is locked for comments

  • Tino Rabe Profile Picture
    650 on at
    RE: Redirection after Login/Logout (ReturnURL)

    Thanks, I'll check that out.

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Redirection after Login/Logout (ReturnURL)

    Hi Tino,

    I had the same require few months back but couldn't get any reference on how can I achieve it. As the templates are not available, we can't either customize.

    I ended up with a workaround of adding a button within the home page with the return URL to my support page. So when someone opens the portal, instead of clicking the sign in from top, they click the custom sign in button which redirects to the support page post login.

    Below is the code snippet of my customized  home  web template

    ##############

    {% if user %}

          {% else %}

          <a style="color:#ffffff;background-color:#0B80D0" href="~/signin?returnUrl=%2Fsupport" class="btn btn-info-home btn-lg-home" title="Sign In">Sign In</a>

          {% endif %}

    #################

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans