balupton/history.js — Issue #130: question mark changes hash behaviour
Author: djmirel
Created: 2011-11-23 22:44:55+00:00
State: open

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.