mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-01 10:18:54 -04:00
Fixed instant loading not honoring target=_blank
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user