From f2d891cae9cf7bccc244a0b0350c24f576c2599e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20G=C5=82owala?= Date: Wed, 21 Feb 2024 22:20:13 +0100 Subject: [PATCH] fix(nuxt): pass `external` to `navigate` in custom `` (#25887) --- packages/nuxt/src/app/components/nuxt-link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/app/components/nuxt-link.ts b/packages/nuxt/src/app/components/nuxt-link.ts index b5ad9dbc68..bb06a0c1d7 100644 --- a/packages/nuxt/src/app/components/nuxt-link.ts +++ b/packages/nuxt/src/app/components/nuxt-link.ts @@ -354,14 +354,14 @@ export function defineNuxtLink (options: NuxtLinkOptions) { (isAbsoluteUrl.value || hasTarget.value) ? 'noopener noreferrer' : '' ) || null - const navigate = () => navigateTo(href, { replace: props.replace }) - // https://router.vuejs.org/api/#custom if (props.custom) { if (!slots.default) { return null } + const navigate = () => navigateTo(href, { replace: props.replace, external: props.external }) + return slots.default({ href, navigate,