Skip to content

NuxtLink external links seem to be broken in v4.0.0-alpha.4 #32498

@toniengelhardt

Description

@toniengelhardt

Environment

nuxt 4.0.0-alpha.4

Reproduction

See description.

Describe the bug

This works in v4.0.0-alpha.2, but not in v4.0.0-alpha.4:

<script setup lang="ts">
const url = "https://google.com"
</script>

<template>
  <NuxtLink :to="url">Google</NuxtLink>
</template>

It'll try to route to {host}/https://google.com.

Additional context

No response

Logs

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions