Navigation problems (back buttons)

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
TGergo
Posts: 41
Joined: 24 Nov 2022, 14:35

Navigation problems (back buttons)

Post by TGergo » 04 Jan 2023, 14:57

php version 8.1
Windows 10
Aimeos version 2022.10.2.

Hello!

Sometimes back navigation is wrong.
Not the browser's back button.

For example:
I'm on the product list.
I click on a product.
I'm on a product detail view.
I click on the Back link at breadcrumb.
I'm on the product list again.
I open basket modal window.
And I click back, I want close modal window, but the site navigates to preview product detail view.

other example:
I have a product in my cart.
I'm on the product list.
I click on basket icon (right-top) navigate to, domain.com/shop/basket
And I click back, I want see product list, but I see a product detail page.

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Navigation problems (back buttons)

Post by aimeos » 12 Jan 2023, 10:02

We can reproduce the behavior and have to see why that happens.
If you want to check yourself in the meantime, the parameters of the last visited list or detail page are stored in the user session.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Navigation problems (back buttons)

Post by aimeos » 14 Jan 2023, 16:59

The behavior has been fixed in dev-master and 2020.10.x-dev of the aimeos/ai-client-html package.

When clicking on the back buttons in overlays, the overlays are closed now without any page load and the detail pages aren't preferred over list pages in the basket view any more.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply