Skip to content

Warning will appear when passing an external link to <NuxtLink> #27312

@Mini-ghost

Description

@Mini-ghost

Environment


  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.12.0-28606556.69430aa2
  • CLI Version: 3.11.2-1716385490.bfaf128
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@8.15.6
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-starter-jphpju?file=app.vue

Describe the bug

  1. Start Reproduction. It includes the following code:
    <NuxtLink to="https://nuxt.com/">Nuxt</NuxtLink>
  2. Open the Console panel in DevTools.
  3. A warning appears: [Vue Router warn]: No match found for location with path "https://nuxt.com/".
截圖 2024-05-23 凌晨1 29 32

Additional context

This might be related to this PR: #26522.

Logs

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions