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:
Kunthawat Greethong
2026-06-04 19:07:20 +07:00
parent ff4e5ae346
commit 9ed0abb5d4
6 changed files with 12 additions and 12 deletions

View File

@@ -8,10 +8,10 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
"@type": "Product",
"name": "เครื่องเชื่อม HDPE",
"description": "เครื่องเชื่อมท่อ HDPE คุณภาพสูง เหมาะสำหรับงานเชื่อมท่อ HDPE ระบบประปา ระบบน้ำ งานอุตสาหกรรม ราคาพิเศษ ส่งฟรี",
"image": "https://dealplustech.co.th/images/HDPE-welding-crop.jpg",
"image": "/images/HDPE-welding-crop.jpg",
"offers": {
"@type": "Offer",
"url": "https://dealplustech.co.th/เครื่องเชื่อม-hdpe",
"url": "https://dealplustech.com/เครื่องเชื่อม-hdpe",
"priceCurrency": "THB",
"availability": "https://schema.org/InStock"
}