Skip to content

fix(vue): render resolved href for object router-link - #31663

Merged
ShaneK merged 1 commit into
mainfrom
FW-7875-2
Oct 28, 2026
Merged

ShaneK merged 1 commit into
mainfrom
FW-7875-2

Conversation

@ShaneK

@ShaneK ShaneK commented Oct 28, 2026

Copy link
Copy Markdown
Member

Issue number: resolves #30848


What is the current behavior?

Currently, passing a route object to router-link renders [object Object] as the href, so hovering, copying or ctrl/cmd-clicking the link goes to the wrong place. A normal click still navigates correctly.

What is the new behavior?

This bumps @stencil/vue-output-target to 0.14.7, which has the fix from stenciljs/output-targets#866. Route objects now resolve through Vue Router to a real href, and string links do too, so hash history and a router base are included.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@ShaneK
ShaneK requested a review from a team as a code owner October 28, 2026 15:25
@ShaneK
ShaneK requested a review from brandyscarney October 28, 2026 15:25
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Oct 28, 2026 3:28pm UTC

Request Review

@ShaneK
ShaneK added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit d73cacb Oct 28, 2026
56 checks passed
@ShaneK
ShaneK deleted the FW-7875-2 branch October 28, 2026 15:56

This branch was successfully deployed

1 active deployment
Preview — c9b01af6 Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Vue: Incorrect href [object Object] when using router-link object

2 participants