Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

57
Views
Return to requested url after login

I am making React App in which msal-browser has been integrated for login.

Steps to reproduce:

-> Enter url in browser like https://example.com/profile

-> User is not logged in yet, so the user will be redirected to login page and upon clicking login button, user will be redirected to https://login.microsoftonline.com/ .

-> Entered user credentials and once the login is successful, user was redirected to https://example.com/home post login.

Expectation:

-> But the user is expected to redirect back to the original/requested url which is https://example.com/profile.

Things tried:

I have tried configuring the auth like,

  auth: {
    clientId: clientId,
    authority: authority,
    redirectUri: redirectUri,
    navigateToLoginRequestUrl : true
  },

Thought navigateToLoginRequestUrl will do the trick but unfortunately it doesn't. Anyone here could able to help and get out of this blocker I am facing? Big thanks in advance.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!