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

fix: Added Return_To param to request URL #219

Merged
merged 4 commits into from
Dec 13, 2023
Merged

fix: Added Return_To param to request URL #219

merged 4 commits into from
Dec 13, 2023

Conversation

andy-t-wang
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Dec 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
idkit-js-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2023 0:43am

@andy-t-wang andy-t-wang changed the title Added Return To to the url URL: Added Return_To param to request URL Dec 13, 2023
@andy-t-wang andy-t-wang changed the title URL: Added Return_To param to request URL fix: Added Return_To param to request URL Dec 13, 2023
)}${bridge_url && bridge_url !== DEFAULT_BRIDGE_URL ? `&b=${encodeURIComponent(bridge_url)}` : ''}`,
)}${
bridge_url && bridge_url !== DEFAULT_BRIDGE_URL ? `&b=${encodeURIComponent(bridge_url)}` : ''
}&return_to=${encodeURIComponent(window.location.href)}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should only be appended when tapping the universal link button, this will include it in the QR code as well

@@ -30,7 +30,7 @@ const QRState: FC<Props> = ({ qrData, showQR, setShowQR }) => {
<>
<div className="mb-10 space-y-4 md:hidden">
<motion.a
href={qrData ?? ''}
href={qrData ? qrData + `&return_to=${encodeURIComponent(window.location.href)}` : ''}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subsequent improvement we can handle this in the controller

@pdtfh pdtfh merged commit c434d0f into main Dec 13, 2023
7 checks passed
@pdtfh pdtfh deleted the return-to-url branch December 13, 2023 12:44
This was referenced Dec 13, 2023
This was referenced Jan 2, 2024
@github-actions github-actions bot mentioned this pull request Jan 26, 2024
@github-actions github-actions bot mentioned this pull request Mar 30, 2024
@github-actions github-actions bot mentioned this pull request Jul 19, 2024
@github-actions github-actions bot mentioned this pull request Aug 9, 2024
@github-actions github-actions bot mentioned this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants