summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-11-18 15:25:27 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-11-18 15:25:27 +0700
commit6a06e4b5db895c12084e47f42a264cd8f9c51f25 (patch)
treef80314a6a7a16c1fdd5a1be7ffe3041af4204eba
parent9855e33f0b613cc7ed8828bfc3a24d15821456db (diff)
<MIqdad> safe canonical brand
-rw-r--r--src/pages/shop/brands/[slug].jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx
index c5b3eaac..f577e2c0 100644
--- a/src/pages/shop/brands/[slug].jsx
+++ b/src/pages/shop/brands/[slug].jsx
@@ -47,7 +47,10 @@ export default function BrandDetail() {
content: `Jual ${brandName}, beli ${brandName}, Distributor ${brandName} Indonesia, cari ${brandName}, produk ${brandName}, ${brandName} Indonesia, harga ${brandName}`,
},
]}
- canonical={`${process.env.NEXT_PUBLIC_SELF_HOST}/shop/brands/${slug}`}
+ // canonical={`${process.env.NEXT_PUBLIC_SELF_HOST}/shop/brands/${slug}`}
+ canonical={`${process.env.NEXT_PUBLIC_SELF_HOST}${
+ router.asPath.split('?')[0]
+ }`}
/>
<Breadcrumb brandName={brandName} />