Fixed instant loading not honoring target=_blank

This commit is contained in:
squidfunk
2020-04-17 21:10:04 +02:00
parent 5b8721ff92
commit e96657cc1e
7 changed files with 7 additions and 7 deletions

View File

@@ -125,7 +125,7 @@ export function setupInstantLoading(
switchMap(ev => {
if (ev.target instanceof HTMLElement) {
const el = ev.target.closest("a")
if (el && isLocalLocation(el)) {
if (el && !el.target && isLocalLocation(el)) {
if (!isAnchorLocation(el))
ev.preventDefault()
return of(el)