Skip to content

Hash mode router-link generated anchor href not a hash url #780

Closed
@tilleps

Description

@tilleps

For "hash" being the default mode, shouldn't the generated anchors generate hashed URLs? (For cases where one would want to copy URL or open link in a new tab/window)

The following router-link:

<router-link to="/example">Example</router-link>

Generates:

<a href="/example">Example</a>

Expected:

<a href="#/example">Example</a>

Clicking on the generated (non-hashed) anchor seems to work, it changes the URL to the hashed version of the URL.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions