Issue with slider and #prev #next

I think there was an update a while ago where Cornerstone added the tags #prev and #next to the slider navigation arrows.

Since then, the behavior when navigating between pages has changed in an unpleasant way, and I hope you have a solution.

For example, I’m on a certain section of a homepage with the anchor link domain.com/#section3 and a Cornerstone slider.

As soon as I click on one of the arrows with #prev or #next, the browser’s address bar changes from domain.com/#section3 to the corresponding anchor link, for example, domain.com/#next.

If I then click on one of the slider entries to get to the desired subpage, and afterwards try to go back using the browser’s back button, I don’t end up at domain.com/#section3 but at domain.com/#next, which can’t be resolved, so the browser jumps back to the top of the homepage.

Live-Example:


I hope I explained that clearly.

Thank you and best regards,

Hannes

Hello Hannes,

Thanks for writing in! The Next and Prev buttons are linked to the slides. You can disable the link by switching the HTML Tag from <a> to <div>:

And then in the Customize tab, insert this custom CSS:

Having it that way, the Address Bar URL will remain at https://example.com/#section3.

Kindly let us know how it goes.

Excellent! Thank you!

Will there be an update for this? I have many websites running with the Pro version that I now need to adjust.

Hello Hannes,

I will forward this thread to @Charlie, our developer, for comment.

Thanks.

Thank you!

You are most welcome, @salilou

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.