Simplify product URL structure in sitemap generation.
Removed the UUID component from product URLs in the sitemap to enhance readability and improve user experience. This change ensures cleaner, more user-friendly links without impacting functionality.
This commit is contained in:
parent
3ec0991aa6
commit
a3eb5cf7f2
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class ProductSitemap(Sitemap):
|
||||||
return obj.modified
|
return obj.modified
|
||||||
|
|
||||||
def location(self, obj):
|
def location(self, obj):
|
||||||
return f"/{LANGUAGE_CODE}/product/{obj.uuid}/{obj.slug}"
|
return f"/{LANGUAGE_CODE}/product/{obj.slug}"
|
||||||
|
|
||||||
|
|
||||||
class CategorySitemap(Sitemap):
|
class CategorySitemap(Sitemap):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue