history.js icon indicating copy to clipboard operation
history.js copied to clipboard

question mark changes hash behaviour

Open djmirel opened this issue 14 years ago • 0 comments

Hello... I have a big problem. I have a link like so : http://sitename.com/username/pictures#showPhoto?photoid=123. When showPhoto anchor apears, a lightbox is triggered and gets te photo with that id. If i use history.js , it changes my link to http://sitename.com/showPhoto?photoid=123, and i don't want that, beacouse when the user clicks outside the lightbox it should return to the page wich from it was trigered the hash . This only apears if i use a hash with question mark ( ? ) . If i dont't use a hash with parameters, the link remains as expected. How can I use this witouth pushing the link, and make use of the hash ? Please help.

djmirel avatar Nov 23 '11 22:11 djmirel