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.
NUXT0045vite-doctor/nuxtroutingwarnSuggestion

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.

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>
Copyright © 2026