We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e96f20e commit efc36deCopy full SHA for efc36de
app/components/ScrollToTop.client.vue
@@ -3,7 +3,7 @@ const route = useRoute()
3
4
// Pages where scroll-to-top should NOT be shown
5
const excludedRoutes = new Set(['index', 'code'])
6
-const isPackagePage = computed(() => route.path.includes('/package/'))
+const isPackagePage = computed(() => route.name === 'package' || route.name === 'package-version')
7
8
const isActive = computed(() => !excludedRoutes.has(route.name as string) && !isPackagePage.value)
9
0 commit comments