pwa-studio icon indicating copy to clipboard operation
pwa-studio copied to clipboard

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

Open justinconabree opened this issue 3 years ago • 8 comments

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
  • [x] venia-ui
  • [ ] pwa-buildpack
  • [x] peregrine
  • [ ] pwa-devdocs
  • [ ] upward-js
  • [ ] upward-spec
  • [ ] create-pwa

justinconabree avatar May 13 '22 14:05 justinconabree

Hi @JustinConabreeAbsolunet. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar May 13 '22 14:05 m2-assistant[bot]

@magento export issue to JIRA project PWA as Bug

anthoula avatar May 16 '22 14:05 anthoula

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/PWA-2832 is successfully created for this GitHub issue.

github-jira-sync-bot avatar May 16 '22 14:05 github-jira-sync-bot

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

anthoula avatar May 16 '22 17:05 anthoula

@anthoula - is there any update on this issue?

chris-brabender avatar Aug 23 '22 14:08 chris-brabender

@adobe export issue to JIRA project PWA as Bug

anthoula avatar Aug 23 '22 20:08 anthoula

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-2971 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Aug 23 '22 20:08 github-jira-sync-bot

@anthoula - is there any update on this issue?

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

anthoula avatar Aug 23 '22 20:08 anthoula