|
|
@ -187,10 +187,10 @@ export function createRouter(
|
|
|
|
(link instanceof SVGElement || !link.download)
|
|
|
|
(link instanceof SVGElement || !link.download)
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
const { target } = link
|
|
|
|
const { target } = link
|
|
|
|
|
|
|
|
const linkHref = link.getAttribute('href')
|
|
|
|
|
|
|
|
if (linkHref == null) return
|
|
|
|
const { href, origin, pathname, hash, search } = new URL(
|
|
|
|
const { href, origin, pathname, hash, search } = new URL(
|
|
|
|
link.href instanceof SVGAnimatedString
|
|
|
|
linkHref,
|
|
|
|
? link.href.animVal
|
|
|
|
|
|
|
|
: link.href,
|
|
|
|
|
|
|
|
link.baseURI
|
|
|
|
link.baseURI
|
|
|
|
)
|
|
|
|
)
|
|
|
|
const currentUrl = new URL(location.href) // copy to keep old data
|
|
|
|
const currentUrl = new URL(location.href) // copy to keep old data
|
|
|
|