Skip to content

Commit 17cdf6f

Browse files
authored
fix: use nuxt-link instead of anchor tag (#785)
refactor(docs): use nuxt-link instead of anchor tag
1 parent ed9dfa0 commit 17cdf6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/quick-starts/framework/nuxt/_get-user-information.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ When user is signed in, the return value of `useLogtoUser()` will be an object c
2222
</ul>
2323
<!-- highlight-end -->
2424
<!-- Simplified button for sign-in and sign-out -->
25-
<a :href="`/sign-${ user ? 'out' : 'in' }`"> Sign {{ user ? 'out' : 'in' }} </a>
25+
<nuxt-link :to="`/sign-${ user ? 'out' : 'in' }`"> Sign {{ user ? 'out' : 'in' }} </nuxt-link>
2626
</template>
2727
```
2828

docs/quick-starts/framework/nuxt/_integration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Since Nuxt pages will be hydrated and become a single-page application (SPA) aft
8484
</script>
8585
<template>
8686
<!-- Simplified button for sign-in and sign-out -->
87-
<a :href="`/sign-${ user ? 'out' : 'in' }`"> Sign {{ user ? 'out' : 'in' }} </a>
87+
<nuxt-link :to="`/sign-${ user ? 'out' : 'in' }`"> Sign {{ user ? 'out' : 'in' }} </nuxt-link>
8888
</template>
8989
```
9090

0 commit comments

Comments
 (0)