Skip to content

Commit 42af988

Browse files
feat: add page path to query
1 parent 9ee7fbb commit 42af988

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/components/Header/AuthModal.client.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<script setup lang="ts">
22
const handleInput = shallowRef('')
3-
3+
const route = useRoute()
44
const { user, logout } = useAtproto()
55
66
async function handleBlueskySignIn() {
77
await navigateTo(
88
{
99
path: '/api/auth/atproto',
10-
query: { handle: 'https://bsky.social' },
10+
query: { handle: 'https://bsky.social', returnTo: route.fullPath },
1111
},
1212
{ external: true },
1313
)
@@ -17,7 +17,7 @@ async function handleCreateAccount() {
1717
await navigateTo(
1818
{
1919
path: '/api/auth/atproto',
20-
query: { handle: 'https://npmx.social', create: 'true' },
20+
query: { handle: 'https://npmx.social', create: 'true', returnTo: route.fullPath },
2121
},
2222
{ external: true },
2323
)

0 commit comments

Comments
 (0)