Created
October 11, 2018 07:26
-
-
Save bulbul84/ddad6b6e1fc39d3f8f6cdd22b0b574ed to your computer and use it in GitHub Desktop.
Jquery PrettyPhoto removing #prettyphoto from URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a) This worked for me: | |
function clearHashtag(){ | |
if(location.href.indexOf('#prettyPhoto')!==-1) | |
location.hash=""; | |
} | |
This code is at the bottom of jquery.prettyPhoto.js | |
b) There is another way, like setting: deeplinking: false at the beginning of jquery.prettyPhoto.js. | |
I mean here: | |
(function($){$.prettyPhoto={version:'3.1.4'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({.. deeplinking: false; ...} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment