Skip to content

Instantly share code, notes, and snippets.

@bulbul84
Created October 11, 2018 07:26
Show Gist options
  • Save bulbul84/ddad6b6e1fc39d3f8f6cdd22b0b574ed to your computer and use it in GitHub Desktop.
Save bulbul84/ddad6b6e1fc39d3f8f6cdd22b0b574ed to your computer and use it in GitHub Desktop.
Jquery PrettyPhoto removing #prettyphoto from URL
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