Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix seo_url to actually add the locale option (#11658)

Jan Berdajsce15ba8ef58a
diff --git a/core/app/helpers/spree/base_helper.rb b/core/app/helpers/spree/base_helper.rb
index fc77fe8bc3..0b0fc41805 100644
--- a/core/app/helpers/spree/base_helper.rb
+++ b/core/app/helpers/spree/base_helper.rb
@@ -167,8 +167,7 @@ module Spree
end
def seo_url(taxon, options = {})
- options.merge(locale: locale_param)
- spree.nested_taxons_path(taxon.permalink, options)
+ spree.nested_taxons_path(taxon.permalink, options.merge(locale: locale_param))
end
def frontend_available?