web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to setup Power Pag...
Power Pages
Unanswered

How to setup Power Pages Signout URLs for external URLS for multi language

(0) ShareShare
ReportReport
Posted on by 2

Hi All,

We have power page multi language enabled and external authentication with Azure AD B2C portal.

We have separate login and logout pages setup done in Azure AD B2C portals.

Now we need to setup based on user language when user sign-out power portal should redirect to language specific azure AD B2C portal?

example:

User A login with English language. User A sign-out then Power Pages should redirect user to English Azure AD B2C login page.

User B login with Arabic language. If User B sign-out then Power pages should redirect user to Arabic Azure AD B2C login page

 

Appreciate your efforts.

Thanks,

Venu.

Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,541 Super User 2026 Season 1 on at

    Hi @Venugopal08,

     

    the easiest solution in my opinion would be that you either set a local variable or you change the string according to the user language attribute. When the user is logging out you than use that event or the js of the page where everyone is redirected and check for those variables. If the variable is !== null than use window.location.href to redirect to the correct page in the correct language. If you write the code on top of the js, it will be executed quiet fast so that the UX should not have a negative impact.



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • Venugopal08 Profile Picture
    2 on at

    Hi Lucas,

     

    I'm using OOB CRM Azure AD B2C Sign-out method which is using site settings.

     

    Also tried to redirect to middle page and then redirect user to another page. Since it is OOB sign out all sessions cleared hence it is redirecting back to sign-in page.

     

    Quick question how do I sign-out Azure AD B2C manually (not using OOB sign-out) and then navigate user to external page using window.location.href.

     

    Appreciate your inputs.

     

    Regards,

    Venu.

  • Lucas001 Profile Picture
    2,541 Super User 2026 Season 1 on at

    Hi @Venugopal08,

     

    it seems like that page itself is using a Link inside an <a> to log you off:

    <a aria-label="Log out" aria-roledescription="link" href="/Account/Login/LogOff?returnUrl=%2F" title="Logout">Log out</a>

     

    Can you try calling that link with window.location.href, it should give you the function you want.



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 64

#2
DP_Prabh Profile Picture

DP_Prabh 36

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard