question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug]: Gallery item Add To Cart configurable product redirect URL doesn't match tile URL

See original GitHub issue

Describe the bug

When clicking the add to cart button on a configurable product gallery item (the PLP for instance) the URL you’re redirected to doesn’t match the URL used on the product tile.

To reproduce

Steps to reproduce the behavior:

  1. Go to https://venia.magento.com/venia-bottoms/venia-pants.html?page=1
  2. Click on the Add To Cart button for Gloria Palazzo Pants
  3. Will be redirected to https://venia.magento.com/venia-bottoms/gloria-palazzo-pants.html

Expected behavior

Should be redirected to https://venia.magento.com/gloria-palazzo-pants.html, like click the image would do

Possible solutions

  • Support product options in listings

OR

  • Render a Redirect component instead of using history.push and prefix URL with a / so it uses the base URL instead of being relative

OR

  • Use a Link for the button when it’s a configurable product

Please let us know what packages this bug is in regards to:

  • venia-concept
  • venia-ui
  • pwa-buildpack
  • peregrine
  • pwa-devdocs
  • upward-js
  • upward-spec
  • create-pwa

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
anthoulacommented, May 16, 2022

Thanks @JustinConabreeAbsolunet ! We’ll add this to some upcoming work 👍

0reactions
anthoulacommented, Aug 23, 2022

@anthoula - is there any update on this issue?

@chris-brabender This has been reprioritized and is in our backlog

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configurable product will not redirect to product view page ...
I just want to show this message in a popup without redirecting on the product view page. I found out the controller and...
Read more >
sitemap-questions-371.xml - Stack Overflow
... /add-to-cart-button-in-oscommerce-keeps-redirecting-back-to-product-page ... -how-to-link-the-configurable-product-image-to-the-simple-product-image ...
Read more >
Product Category URL does not match Permalink settings
Hello,. When I add a menu item (type: product category) and wherever my theme displays links to product categories, I see this URL:....
Read more >
Hotfixes - Kentico DevNet
Kentico fixes reported bugs within 7 business days by releasing a hotfix. Learn more about our 7-day bug-fix policy. You can use the...
Read more >
Winter 22 - Trailhead - Salesforce
Previously, buyers left the Category Detail or Search Results pages to go to the Product Details page to add items to their cart....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found