scaron/prettyphoto — Issue #80: Revert to original hash when closing overlay
Author: Mondane
Created: 2011-10-25 09:08:56+00:00
State: open

Now, when a prettyPhoto overlay closes, the hash is set to

#!prettyPhoto

I would suggest to set the hash with the value it was before opening the overlay.

Ie. starting url is:

http://www.example.com/index.php#footer

Opening an overlay makes:

http://www.example.com/index.php/#!prettyPhoto/0/

Closing the overlay gives:

http://www.example.com/index.php#footer

In case of no original hash, to prevent the scroll bug, revert to

http://www.example.com/index.php#!prettyPhoto

(or -even better- a configurable string for !prettyPhoto).