Skip to content

Commit

Permalink
fix: magic link working with file routing
Browse files Browse the repository at this point in the history
  • Loading branch information
devanoneth committed Apr 30, 2024
1 parent 5374d52 commit a75d4bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/transactions/SignTxButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const SignTxButton = ({

useEffect(() => {
if (tx && safe && showMagicLink) {
setLink(`${AppRoutes.transactions.tx}?safe=${safe}&tx=${tx}`)
setLink(`${AppRoutes.transactions.tx}/?safe=${safe}&tx=${tx}`)
} else {
setLink(undefined)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/TxShareLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TxShareLink = ({ safeTx }: { safeTx: SafeTransaction }): ReactElement => {

const router = useRouter()
const { safe = '' } = router.query
const href = `${AppRoutes.transactions.tx}?safe=${safe}&tx=${tx}`
const href = `${AppRoutes.transactions.tx}/?safe=${safe}&tx=${tx}`

const onClick = (e: MouseEvent) => {
if (!e.ctrlKey && !e.metaKey) {
Expand Down

0 comments on commit a75d4bf

Please sign in to comment.