Meta title and Description duplication fixed
This commit is contained in:
parent
2a423bd172
commit
8533a673f6
@ -3,7 +3,6 @@ import Link from "next/link";
|
||||
import { notFound } from "next/navigation";
|
||||
import Accident from "@/utils/Accident.utils";
|
||||
|
||||
// ✅ Generate static paths for export
|
||||
export async function generateStaticParams() {
|
||||
return Accident.map((item) => ({
|
||||
slug: item.slug,
|
||||
@ -22,7 +21,7 @@ export async function generateMetadata({ params }) {
|
||||
|
||||
return {
|
||||
title: service.metaTitle || service.title,
|
||||
description: service.metaDescription || service.shortDesc,
|
||||
description: service.metaDiscription || service.shortDesc,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ export async function generateMetadata({ params }) {
|
||||
|
||||
return {
|
||||
title: `${service.metaTitle} – Rapharehab Clinic`,
|
||||
description: service.metaDescription || "Expert physiotherapy and pain relief treatments.",
|
||||
description: service.metaDiscription || "Expert physiotherapy and pain relief treatments.",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ export async function generateMetadata({ params }) {
|
||||
|
||||
return {
|
||||
title: service.metaTitle || service.shortTitle || service.title,
|
||||
description: service.metaDescription || service.shortDesc || "Explore this service in detail",
|
||||
description: service.metaDiscription || service.shortDesc || "Explore this service in detail",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -3,7 +3,6 @@ import Link from "next/link";
|
||||
import { notFound } from "next/navigation";
|
||||
import Rehabilitation from "@/utils/Rehabilitation.utils";
|
||||
|
||||
// ✅ Generate static paths for export
|
||||
export async function generateStaticParams() {
|
||||
return Rehabilitation.map((item) => ({
|
||||
slug: item.slug,
|
||||
@ -17,7 +16,7 @@ export async function generateMetadata({ params }) {
|
||||
|
||||
return {
|
||||
title: service.metaTitle || service.title,
|
||||
description: service.metaDescription || service.shortDesc,
|
||||
description: service.metaDiscription || service.shortDesc,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -137,7 +137,7 @@ export const servicesList = [
|
||||
icon: "/assets/images/services/icons/trusted-physiotherapy-clinic.webp",
|
||||
alt: "Physiotherapy | Rapharehab",
|
||||
icon2: "/assets/images/mobile-view/services/trusted-physiotherapy-clinic.webp",
|
||||
metaTitle: "Best Pain Relief & Physiotherapy – Rapharehab Clinic",
|
||||
metaTitle: "Best Pain Relief & Physiotherapy Clinic Etobicoke – Rapharehab Clinic",
|
||||
metaDiscription: "Rapharehab offers trusted Best Pain Relief & Physiotherapy treatments with professional care tailored to restore your health and mobility.",
|
||||
shortDescription: "Rapha Rehab is one of the premier Physiotherapy clinics in Etiobicoke Scarborough & Mississauga.",
|
||||
description: `<div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user