From ca0a92d02ef656477373a14c218a394122a1f82c Mon Sep 17 00:00:00 2001 From: Kyle Domingo Date: Thu, 10 Aug 2017 08:59:11 +0800 Subject: [PATCH] Do not leave "#prettyPhoto" in the URL when closing the lightbox --- js/jquery.prettyPhoto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.prettyPhoto.js b/js/jquery.prettyPhoto.js index 9ecf9d1..2c1a06d 100644 --- a/js/jquery.prettyPhoto.js +++ b/js/jquery.prettyPhoto.js @@ -895,7 +895,7 @@ }; function clearHashtag(){ - if ( location.href.indexOf('#prettyPhoto') !== -1 ) location.hash = "prettyPhoto"; + if ( location.href.indexOf('#prettyPhoto') !== -1 ) location.hash = ""; } function getParam(name,url){