fix(seo): fix hardcoded dealplustech.co.th URLs in JSON-LD
The JSON-LD Product schema in 6 product pages had hardcoded URLs to dealplustech.co.th, but astro.config.mjs configures the site as dealplustech.com. When this project replaces the old site, those URLs would 404. Changes: - Replace `https://dealplustech.co.th/images/...` with relative `/images/...` paths (resolved by Astro at build time) - Replace `https://dealplustech.co.th/<page>` with `https://dealplustech.com/<page>` (canonical domain) - Special case: vineman schema `image` referenced an .svg that doesn't exist locally — switch to the .jpg version that does (also used by the page body) at /images/products-raw/vineman/ระบบรั้วไวน์แมน-Vineman-e1613286324569-1024x880.jpg Files changed: - realflex.astro - วาล์ว-valve.astro - water-treatment.astro - เครื่องเชื่อม-hdpe.astro - ระบบรั้วไวน์แมน.astro - เทอร์โมเบรค-thermobreak.astro
This commit is contained in:
@@ -11,10 +11,10 @@ import StickyBottomCTA from '@/components/common/StickyBottomCTA.astro';
|
||||
"@type": "Product",
|
||||
"name": "ระบบรั้วไวน์แมน Vineman รั้วตาข่าย ลวดหนาม",
|
||||
"description": "จำหน่ายระบบรั้วไวน์แมน Vineman รั้วตาข่าย ลวดหนามคุณภาพสูง ราคาโรงงาน ส่งฟรี กทม. ปริมณฑล",
|
||||
"image": "https://dealplustech.co.th/images/products-raw/vineman/ระบบรั้วไวน์แมน-Vineman-e1613286324569-1024x880.svg",
|
||||
"image": "/images/products-raw/vineman/ระบบรั้วไวน์แมน-Vineman-e1613286324569-1024x880.jpg",
|
||||
"offers": {
|
||||
"@type": "Offer",
|
||||
"url": "https://dealplustech.co.th/ระบบรั้วไวน์แมน-vineman-2",
|
||||
"url": "https://dealplustech.com/ระบบรั้วไวน์แมน-vineman-2",
|
||||
"priceCurrency": "THB",
|
||||
"availability": "https://schema.org/InStock"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user