Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Turbolinks fails with target = "_self" #606

Open
ClintonEnyinna opened this issue Mar 9, 2021 · 1 comment
Open

Turbolinks fails with target = "_self" #606

ClintonEnyinna opened this issue Mar 9, 2021 · 1 comment
Labels

Comments

@ClintonEnyinna
Copy link

Describe the bug
When the target of a link is set to self, target = "_self", turbolinks stops working on that link

Steps to reproduce the behavior:

  1. add target = "_self" to anchor tag.

Expected behavior
Since "_self" is the default target for a link, I believe it should not trigger a full page reload.

@r-sp
Copy link

r-sp commented Jul 13, 2021

maybe this code snippet helps you. :not([target])

r.prototype.getVisitableLinkForNode = function (t) {
    return this.nodeIsVisitable(t) ? e.closest(t, "a[href]:not([target]):not([download])") : void 0;
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants