Skip to content

Conversation

Barbapapazes
Copy link
Contributor

@Barbapapazes Barbapapazes commented Aug 14, 2025

Note

For v4 branch, see #4746 for v3

Hello 👋,

This PR fixes a bug where the following button:

<template>
  <UButton
    href="/admin"
    target="_blank"
  />
</template>

triggers an Inertia request, opening the link in an Inertia modal instead of a new tab.

This happens because a blank target is not treated as an external link, and Inertia ignores the target prop. As a result, Inertia fetches the URL, returns HTML, and displays it in the modal.

@benjamincanac
Copy link
Member

Closing this as v4 branch follows v3, everything from v3 is rebased into v4!

@benjamincanac benjamincanac added the v4 #4488 label Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v4 #4488
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants