Skip to content

Commit

Permalink
fix: Added Return_To param to request URL (#219)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Wang <andy.wang@Andy-Wang.local>
  • Loading branch information
andy-t-wang and Andrew Wang authored Dec 13, 2023
1 parent 5d3648c commit c434d0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)}` : ''}
whileTap={{ scale: 0.95 }}
whileHover={{ scale: 1.05 }}
transition={{ layout: { duration: 0.15 } }}
Expand Down

0 comments on commit c434d0f

Please sign in to comment.