Skip to content

Commit 22beacf

Browse files
lbogdanCompuIves
authored andcommitted
Fixed vue-router <router-link> in hash mode. (codesandbox#810)
1 parent 8f2ae1e commit 22beacf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/app/src/sandbox/url-listeners.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export default function setupHistoryListeners() {
100100
const el = ev.target;
101101
if (
102102
el.nodeName === 'A' &&
103+
!el.__vue__ && // workaround for vue-router <router-link>
103104
el.href.indexOf('#') !== -1 &&
104105
el.href.substr(-1) !== '#'
105106
) {

0 commit comments

Comments
 (0)