Page 1 of 1

prettyPhoto and browser back button

Posted: 28 May 2019, 09:31
by andraspal
There seems to minor be a problem when clicking on a product image with prettyphoto opening method.
Once the photo is closed pressing the back button in browser is not working or rather it puts and extra URL parameter in address bar: mysite/product/prettyPhoto[pc_gal1]/0/
So the result is that one has to press the back button 3 times to go back one page. What I am saying it that prettyphoto is making an unneccessary artifact in URL once its closed.

Re: prettyPhoto and browser back button

Posted: 28 May 2019, 14:10
by Jan
Hi, this is a specific feature by prettyPhoto:
mysite/product/prettyPhoto[pc_gal1]/0/

It handles the popup as specific page which can be e.g. indexed by search engines. The problem with popup windows is that they cannot be indexed in search engines like Google. When they are the link mostly goes to blank page with image because the robot cannot run such photo in popup and it even does not have any information on which site the popup should be run. To add to each photo unique URl is great solution how to index the link in search engine and always get the right display. If user will click on such link, the base page is loaded including the popup with right image inside.

Jan