Azure AD B2C Sign-In and Password Reset URL Parameters

Copper Contributor

Hey there, hope you all have an awesome day ahead.


I got this azure ad b2c custom sign-in policy called "signin_policy." It uses a custom web html where you can do cool things with JavaScript. On this page, there are some buttons at the footer section. These buttons basically just take you to different web pages. For example, there's a "Help" button, and when you click it, you end up on ""


Now, here's the interesting part: I also use a self-service password reset for when you forget your password. It's basically a part of the same sign-in policy, so it shares the same web html as the sign-in. But here's the twist – when you're on the "forgot password" page and click the "Help" button, it takes you to a different place, ""


To sum it up, you've got two URLs to remember:


  1. Sign-in URL: ""
  2. Forgot password URL: ""

So, I noticed something about those two URLs. The main difference is a special thing called a "parameter." The Sign-in URL has one called "redirect_uri," which helps the "Help" button find the right page to go to. But guess what? That parameter isn't on the Forgot Password URL.

Now, I'm thinking, how do I deal with this? Can I add that missing parameter to the self-service password reset in Azure AD B2C? If I can, how do I do it?

2 Replies


Hello! You've posted your question in the Tech Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the Microsoft Entra space - please post Microsoft Entra (Azure AD) questions here in the future. 

You can use a browser-based storage option (cookie or local storage) to retain the redirect_uri parameter You can set it on your sign-in URL page and load it on the next page (forgot password)