Skip to content

Commit

Permalink
Add urlKey to route function
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Jan 29, 2024
1 parent e5cd025 commit 7ab36d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/product-list-page/product-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function decorate(block) {
context: {
customerGroup: await getConfigValue('commerce-customer-group'),
},
route: ({ sku }) => `/products/missing-url-key/${sku}`, // TODO: We need urlKey as parameter as well!
route: ({ sku, urlKey }) => `/products/${urlKey}/${sku}`,
};

if (type !== 'search') {
Expand Down
2 changes: 1 addition & 1 deletion scripts/widgets/search.js

Large diffs are not rendered by default.

0 comments on commit 7ab36d1

Please sign in to comment.