Skip to content

not all the new window target is _blank #108

Open
@jcyuan

Description

@jcyuan

const isExternalLink = (anchor as HTMLAnchorElement).target === '_blank';

this line has bug, because i can set my link as <a href="/page" target="_rules" /> so that all the links with this target won't open too many new windows and they will be opened in the same new window, _rules is like a target window name.

now all my '_rules' links will trigger the progress bar to show.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions