Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove #name from url #29

Open
pablosci opened this issue Nov 15, 2012 · 2 comments
Open

Remove #name from url #29

pablosci opened this issue Nov 15, 2012 · 2 comments

Comments

@pablosci
Copy link

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

@deepfriedmind
Copy link

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
Copy link

Tusko commented Jul 7, 2013

@Victa
Hi! Maybe You add new option?
for ex:
hash: true/false

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

No branches or pull requests

3 participants