Remove #name from url
pablosci opened this issue · comments
pabloscillia commented
hi, i just implement curtain.js on a project and it works great
my question is, is there anyway to remove #anchorlinkname from browser url?
thanks a lot
Andreas Wahlqvist commented
I know this is an old issue and the plugin isn't being maintained anymore, but for anyone wanting to not have the hashes appened to the address bar – here's a fix:
Remove/comment out lines 459-464 in the setHash
method in curtains.js, i.e. the following:
if(history.pushState) {
history.pushState(null, null, '#'+hash);
}
else {
location.hash = hash;
}
Tusko Trush commented
@Victa
Hi! Maybe You add new option?
for ex:
hash: true/false