Created
December 16, 2018 20:21
-
-
Save onuro/4f778e3bb602d53a90e009fb7f4a92fe to your computer and use it in GitHub Desktop.
Barba Disable link click on same page url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getUrl = window.location; | |
var getHomeUrl = getUrl.protocol + "//" + getUrl.host; | |
$j('a[href="' + getHomeUrl + '"]').on('click', (event) => { | |
event.preventDefault(); | |
// Barba.Pjax.goTo(getHomeUrl); | |
// console.log('click'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment