Skip to content

Commit

Permalink
adds id to internal routes
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Jul 8, 2019
1 parent f6977dc commit 9714636
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions react/components/ProductSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ const ProductSummaryCustom = ({ product, actionOnClick, children }) => {
page="store.product"
params={{
slug: product && product.linkText,
// WARNING: this enables links with translatable slugs
// id: product && product.productId,
id: product && product.productId,
}}
onClick={actionOnClick}
>
Expand Down
3 changes: 1 addition & 2 deletions react/legacy/components/ProductSummaryInline.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class ProductSummaryInline extends Component {
page={'store.product'}
params={{
slug: product && product.linkText,
// WARNING: this enables links with translatable slugs
// id: product && product.productId,
id: product && product.productId,
}}
onClick={actionOnClick}
>
Expand Down
3 changes: 1 addition & 2 deletions react/legacy/components/ProductSummaryInlinePrice.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ const ProductSummaryInline = ({
page={'store.product'}
params={{
slug: product && product.linkText,
// WARNING: this enables links with translatable slugs
// id: product && product.productId,
id: product && product.productId,
}}
onClick={actionOnClick}
>
Expand Down

0 comments on commit 9714636

Please sign in to comment.