Nuxt · Routing
NUXT0045Avoid route.fullPath in SSR markup
Flags hash sensitive route fullpath in SSR markup in Nuxt routing code before it leaks into runtime behavior.
vite-doctor/nuxtroutingwarnSuggestion
Why it happens
Server-rendered markup must match the first client render. Browser-only state, time, randomness, or hash-sensitive URLs can create hydration mismatches.
Fix
Remove hash sensitive route fullpath in SSR markup, or move it to the Nuxt runtime/API that owns that behavior.
Example
Avoid fullPath in SSR markup
Before
<template>
<p>{{ useRoute().fullPath }}</p>
</template>
After
<script setup lang="ts">
const route = useRoute()
</script>
<template>
<p>{{ route.path }}</p>
</template>
Verify the fix
Run only this rule after editing so the report stays focused on the diagnostic you are closing:
pnpm nuxt doctor --rules nuxt/routing/no-hash-sensitive-route-fullpath-in-ssr-markup