You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the way Nuxt routing works and how we set up our Product List Page (PLP) with searching, filtering and paging, it's not really possible to go back to the previous page after selecting a category or search term by clicking on a link within the breadcrumb.
For that, I re-created the breadcrumb keeping the styling but extending it with an "action" property.
Example: the breadcrumb looks like "HOME > CATALOG > BEER".
This is the interface where I added an optional "action" property.
The action is then used to clear the categoryId property and reset the pagination in our Catalog composable so our request could trigger again before showing the updated items in our PLP.
I might try that, although (maybe not related but a bug I should report) "custom: true" does not seem to work as it keeps on rendering a wrapper anchor tag.
Description
Because of the way Nuxt routing works and how we set up our Product List Page (PLP) with searching, filtering and paging, it's not really possible to go back to the previous page after selecting a category or search term by clicking on a link within the breadcrumb.
For that, I re-created the breadcrumb keeping the styling but extending it with an "action" property.
Example: the breadcrumb looks like "HOME > CATALOG > BEER".
This is the interface where I added an optional "action" property.
The action is then used to clear the categoryId property and reset the pagination in our Catalog composable so our request could trigger again before showing the updated items in our PLP.
This is the part in our custom breadcrumb where the action can be triggered when it was applied.
Could this be a valid enhancement to add to the official component?
Additional context
No response
The text was updated successfully, but these errors were encountered: