Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Back button on Deeplink goes to previous page
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 12
TOPIC: Back button on Deeplink goes to previous page
#69279
Back button on Deeplink goes to previous page 1 Year, 7 Months ago Karma: 0
Hi ARI team,

I have just bought the PRO version of ARI Fancy Lightbox and enabled Deeplinking.

The feature works, but when I open the lightbox and press the back button in the browser, it goes to the previous page instead of closing the lightbox and showing the current page (from which the lightbox deeplink was opened).

For an example of this behavior:
- Go to estherjansen.mezzomedia.nl/
- Go to the "Foto's" page from the menu (which is estherjansen.mezzomedia.nl/fotos/)
- Click on a photo in the gallery
- Press the Back button of your browser
- As you can see, the back button causes you to go back to the Home page

How can this be solved?

Thank you
The administrator has disabled public write access.
 
#69314
Re:Back button on Deeplink goes to previous page 1 Year, 7 Months ago Karma: 0
Dear ARI team,

I have paid for the PRO version for my client to be able to use deep linking + back button.

Could you please reply to my question?
The administrator has disabled public write access.
 
#69358
Re:Back button on Deeplink goes to previous page 1 Year, 7 Months ago Karma: 747
Hello,

Sorry, but it is not possible to open the links. The first links navigates to Plesk panel and the second one to 404 error page. Are they available for guest users?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#69379
Re:Back button on Deeplink goes to previous page 1 Year, 6 Months ago Karma: 0
Hi,

Apologies, the temporary website is not available anymore because it has been migrated to the live website.

The website URL is now www.estherjansen.com
And the URL from the second step in my example is www.estherjansen.com/fotos/
Other than the URL change, the same steps from my example do apply.

Does that allow you to investigate further?

Thank you
Last Edit: 2022/10/05 21:09 By mezzomedia.
The administrator has disabled public write access.
 
#69396
Re:Back button on Deeplink goes to previous page 1 Year, 6 Months ago Karma: 747
Try to populate "Custom JS code" parameter on "ARI Fancy Lightbox -> Settings -> Advanced" page with the following code:

Code:


if ('scrollRestoration' in history) {
    history.scrollRestoration = 'manual';
}
if (!history.state || !history.state.fakeLightbox || history.state.path !== window.location.pathname) {
    history.pushState({fakeLightbox: true, path: window.location.pathname}, null, window.location.pathname);
}
window.addEventListener('popstate', function(e) {
    var isActive = !!$.fancybox.getInstance();
    if (isActive) {
        history.pushState({fakeLightbox: true, path: window.location.pathname}, null, window.location.pathname);
        $.fancybox.close();
    } else {
        history.go(-1);
    }
});



Regards,
ARI Soft
The administrator has disabled public write access.
 
#69411
Re:Back button on Deeplink goes to previous page 1 Year, 6 Months ago Karma: 0
Fantastic, I think the provided solution works!

Thank you very much for this!
The administrator has disabled public write access.
 
Go to topPage: 12