mreq / slick-lightbox

A lightbox wrapper for Ken's amazing slick carousel.
http://mreq.github.io/slick-lightbox/
MIT License
229 stars 103 forks source link

URL was changes after open the lightbox #16

Closed Gitsko closed 8 years ago

Gitsko commented 8 years ago

Hi,

i found a "bug?" on my Projekt. When i open a image the URL in Chrome and IE the url was changed. The url was changed to the base url without any sub-pages.

In Firefox there are no Problem, it also works on Version 0.1.18.

I uses the slickslider and init so: $('#slick-demo').slick(); $('#slick-demo').slickLightbox({ src: 'src', itemSelector: '.item img' });

mreq commented 8 years ago

Hey, are you running a single page app?

Gitsko commented 8 years ago

sorry its run on a local typo3-site.

i have download the last master, when i open local the demo, i have a error in the console in chrome:

Uncaught SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'file:///slick-lightbox-master/demo/index.html' cannot be created in a document with origin 'null'.
mreq commented 8 years ago

Use an arbitrary web server, don't run it as file://.

mreq commented 8 years ago

If you seriously do need to run it like that, use the v0.1.18 version.