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.

Remove line that strips out 'categories/' from permalink in sample data.

Matthew Kennedyc2cdf245d325
diff --git a/sample/db/samples/taxons.rb b/sample/db/samples/taxons.rb
index 5f29d1ddbc..5f7492173a 100644
--- a/sample/db/samples/taxons.rb
+++ b/sample/db/samples/taxons.rb
@@ -17,7 +17,6 @@ categories_taxon = Spree::Taxon.where(name: I18n.t('spree.taxonomy_categories_na
TAXON_NAMES.each do |taxon_name|
taxon = categories_taxon.children.where(name: taxon_name).first_or_create!
- taxon.permalink = taxon.permalink.gsub('categories/', '')
taxon.taxonomy = categories
taxon.save!
end