From a3eb5cf7f21e1b156f11debeb03f5a1c56b8d96e Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 30 Apr 2025 16:33:28 +0300 Subject: [PATCH] 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. --- core/sitemaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sitemaps.py b/core/sitemaps.py index c443ef42..9a9a277d 100644 --- a/core/sitemaps.py +++ b/core/sitemaps.py @@ -22,7 +22,7 @@ class ProductSitemap(Sitemap): return obj.modified def location(self, obj): - return f"/{LANGUAGE_CODE}/product/{obj.uuid}/{obj.slug}" + return f"/{LANGUAGE_CODE}/product/{obj.slug}" class CategorySitemap(Sitemap):