Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use window.location.toString() as the default returnTo value [SDK-2453] #370

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Apr 15, 2021

Description

This PR uses window.location.toString() as the default returnTo value, removing all remaining usages of the Next.js router.

References

Fixes the client-side part of #353.

Testing

Unit tests have been added and also the change has been tested manually using a basePath value.

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

@Widcket Widcket requested a review from a team as a code owner April 15, 2021 03:02
@vercel
Copy link

vercel bot commented Apr 15, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/auth0/nextjs-auth0/DvKFjsQ1uP4HmHKTEwBJzLoPf1Ez
✅ Preview: Canceled

@Widcket Widcket added CH: Fixed PR is fixing a bug review:small Small review labels Apr 15, 2021
@Widcket Widcket changed the title Use window.location.toString() as the default returnTo value Use window.location.toString() as the default returnTo value [SDK-2453] Apr 15, 2021
@Widcket Widcket merged commit bc11293 into main Apr 15, 2021
@Widcket Widcket deleted the fix/return-to-url branch April 15, 2021 11:01
@adamjmcgrath adamjmcgrath mentioned this pull request May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Fixed PR is fixing a bug review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants