Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion actions/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,12 @@ function getProductUrl(product, context, addStore = true) {
const availableParams = {
sku: product.sku,
urlKey: product.urlKey,
path: product.path,
};


if (product.path) {
return product.path;
}
// Only add locale if it has a valid value
if (context.locale) {
availableParams.locale = context.locale;
Expand Down