diff --git a/runtime/app.js b/runtime/app.js index d35be2d..3e7a876 100644 --- a/runtime/app.js +++ b/runtime/app.js @@ -108,7 +108,10 @@ const app = { const svg = typeof a.href === 'object' && a.href.constructor.name === 'SVGAnimatedString'; const href = svg ? a.href.baseVal : a.href; - if (href === window.location.href) return; + if (href === window.location.href) { + event.preventDefault(); + return; + } // Ignore if tag has // 1. 'download' attribute