We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a URL, and if the user is not logged in, I store that URL in query param.
Here is how the URL looks like http://localhost:3000/?redirectTo=https://devs-homed.mart.xyz/new-project?type=badminton&code=pitchford&sessionExpired=true
const url = http://localhost:3000/?redirectTo=https://devs-homed.mart.xyz/new-project?type=badminton&code=pitchford&sessionExpired=true const { redirectTo } = query.parse(url); console.log(redirectTo) Output => https://devs-homed.mart.xyz/new-project?type=badminton Expected => https://devs-homed.mart.xyz/new-project?type=badminton&code=pitchford&sessionExpired=true
How can I get the expected output?
I know this issue is because there is multiple question mark (?) in the URL any way I can solve this issue?
The text was updated successfully, but these errors were encountered:
You have to encode https://devs-homed.mart.xyz/new-project?type=badminton&code=pitchford&sessionExpired=true using encodeURIComponent.
https://devs-homed.mart.xyz/new-project?type=badminton&code=pitchford&sessionExpired=true
encodeURIComponent
Sorry, something went wrong.
No branches or pull requests
I have a URL, and if the user is not logged in, I store that URL in query param.
Here is how the URL looks like
http://localhost:3000/?redirectTo=https://devs-homed.mart.xyz/new-project?type=badminton&code=pitchford&sessionExpired=true
How can I get the expected output?
I know this issue is because there is multiple question mark (?) in the URL any way I can solve this issue?
The text was updated successfully, but these errors were encountered: