Lightbox issues with browser history


Topic: Lightbox issues with browser history

jarenteria pro asked 2 years ago

Expected behavior Clicking on an image in lightbox to zoom in and navigating to see the rest of the pictures should not create an entry in the browser history.

Actual behavior Currently this component is creating a history entry in the browser per picture viewed in the zoom mode, so then users that want to navigate back to a previous view before the one containing the gallery will need to hit back n times.

Resources (screenshots, code snippets etc.) First, there are 2 entries in my browser history: enter image description here

Then, navigate through the pics in the gallery in zoom mode, total of images 9:

enter image description here

and now, I want to go back, I will need to click back 9 times:

enter image description here

This is very cumbersome, even more in a mobile web browser

Regards, Jose Renteria


Konrad Stępień staff commented 2 years ago

Hi @jarenteria,

Thank you for the founded bug!

I checked this problem and we will fix this in the near future.

Best regards.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.10.1
  • Device: ALL
  • Browser: Chrome, Safari, Firefox, Edge
  • OS: Windows, Linux, MacOS, iOS
  • Provided sample code: No
  • Provided link: No