Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support the character sequence 'sku' in product SKUs #963

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

shauke
Copy link
Collaborator

@shauke shauke commented Dec 15, 2021

PR Type

[x] Bugfix

What Is the Current Behavior?

The current product.route matcher results in an error page if the products SKU contains the character sequence sku e.g. glaskugel_1.

Example product detail URL: http://localhost:4200/Acer/Glaskugel-skuglaskugel_1-catComputers.897.897_Acer

Results in a wrong REST API call for the product details: https://pwa-ish-demo.test.intershop.com/INTERSHOP/rest/WFS/inSPIRED-inTRONICS_Business-Site/rest;loc=en_US;cur=USD/products/gel_1?allImages=true

skuglaskugel_1

What Is the New Behavior?

Routes with product SKUs containing the character sequence sku work as expected.

Does this PR Introduce a Breaking Change?

[x] No

Other Information

AB#72230

@shauke shauke added this to the 2.0 milestone Dec 15, 2021
@shauke shauke added the bug Something isn't working label Dec 15, 2021
@shauke shauke self-assigned this Dec 15, 2021
@SGrueber SGrueber modified the milestones: 2.0, 2.1 Jan 31, 2022
@shauke shauke modified the milestones: 2.1, 2.2 Feb 28, 2022
@dhhyi dhhyi force-pushed the bugfix/sku_in_productSKU branch from e781f36 to 3d87ea3 Compare March 21, 2022 14:37
@dhhyi
Copy link
Collaborator

dhhyi commented Mar 24, 2022

Fixed and put in a workaround so slugs don't contain the term -cat. I think it would be more robust if the category ID was awlays separated at the end like http://localhost:4200/Acer/Glaskugel-skuglaskugel_1@Computers.897.897_Acer

* add integration test for routing
* allow sku in sku
* allow sku in category
* assure no -cat in slugs
@shauke shauke force-pushed the bugfix/sku_in_productSKU branch from 91622c0 to 50005e9 Compare March 30, 2022 14:55
@shauke shauke merged commit a22a56d into develop Mar 30, 2022
@shauke shauke deleted the bugfix/sku_in_productSKU branch March 30, 2022 15:03
SGrueber pushed a commit that referenced this pull request May 19, 2022
* add integration test for routing
* allow sku in sku
* allow sku in category
* assure no -cat in slugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants