Nuxt · NUXT0045
Avoid route.fullPath in SSR markup
Flags hash sensitive route fullpath in SSR markup in Nuxt routing code before it leaks into runtime behavior.
nuxt/routing/no-hash-sensitive-route-fullpath-in-ssr-markupsrc/rule-packs/nuxt/rules/nuxt/no-hash-sensitive-route-fullpath-in-ssr-markup.ts Upstream docs Run this rule
pnpm nuxt doctor --rules nuxt/routing/no-hash-sensitive-route-fullpath-in-ssr-markup
Why it matters
Server-rendered markup must match the first client render. Browser-only state, time, randomness, or hash-sensitive URLs can create hydration mismatches.
Recommended fix
Remove hash sensitive route fullpath in SSR markup, or move it to the Nuxt runtime/API that owns that behavior.
Useful links
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>