diff --git a/app/etobicoke-treatment-service/[slug]/ServiceDetailClient.js b/app/etobicoke-treatment-service/[slug]/ServiceDetailClient.js deleted file mode 100644 index 75bd650..0000000 --- a/app/etobicoke-treatment-service/[slug]/ServiceDetailClient.js +++ /dev/null @@ -1,80 +0,0 @@ -'use client' - -import Link from "next/link"; -import { useState } from "react"; - -export default function ServiceDetailClient({ slug, service, servicesList }) { - const [isActive, setIsActive] = useState({ status: false, key: 1 }); - - const handleToggle = (key) => { - if (isActive.key === key) { - setIsActive({ status: false }); - } else { - setIsActive({ status: true, key }); - } - }; - - return ( -
- {/* service-section */} -
-
-
- -
-
-
-

Services

-
-
    - {servicesList.map((item) => ( -
  • - - {item.shortTitle} - -
  • - ))} -
-
-
-
- -
-
-
- {service.alt}
-
-
-
- {`${service.title} -
-

{service.shortTitle}

-

{service.shortDescription}

-
-
-
-
-
- - {/* Content */} -
-
-
-
{service.alt}
- -
-
-
-
-
-
-
-
- ); -} diff --git a/app/etobicoke-treatment-service/[slug]/page.js b/app/etobicoke-treatment-service/[slug]/page.js index 7caba62..2959563 100644 --- a/app/etobicoke-treatment-service/[slug]/page.js +++ b/app/etobicoke-treatment-service/[slug]/page.js @@ -1,23 +1,7 @@ import Layout from "@/components/layout/Layout"; +import Link from "next/link"; +import { notFound } from "next/navigation"; import { servicesList } from "@/utils/Services.utils"; -import ServiceDetailClient from "./ServiceDetailClient"; - -export async function generateMetadata({ params }) { - const service = servicesList.find((item) => item.slug === params.slug); - - if (!service) { - return { - title: "Service | MySite", - description: "Explore our services", - }; - } - - return { - title: service.metaTitle || service.shortTitle || service.title, - description: service.metaDiscription || service.shortDesc || "Explore this service in detail", - }; -} - export async function generateStaticParams() { return servicesList.map((item) => ({ @@ -25,19 +9,98 @@ export async function generateStaticParams() { })); } -export default function ServiceDetailPage({ params }) { - const { slug } = params; - const service = servicesList.find((item) => item.slug === slug); +export async function generateMetadata({ params }) { + const service = servicesList.find((item) => item.slug === params.slug); if (!service) { - return
Service not found
; + return { + title: "Service Not Found – MySite", + description: "The requested service could not be found.", + }; } + return { + title: `${service.metaTitle || service.shortTitle || service.title} – MySite`, + description: service.metaDiscription || service.shortDesc || "Explore our services in detail.", + }; +} + +export default function ServiceDetailPage({ params }) { + const service = servicesList.find((item) => item.slug === params.slug); + + if (!service) return notFound(); + + const altText = service.title ? service.title.toUpperCase() : "SERVICE"; + return ( - - + +
+
+
+ {/* Sidebar */} +
+
+ {/* Categories */} +
+
+

Services

+
+
+
    + {servicesList.map((item) => ( +
  • + + {item.shortTitle} + +
  • + ))} +
+
+
+ +
+
+
+
+ {altText} +
+
+
+
+ {`${service.title} +
+

{service.shortTitle}

+

{service.shortDescription}

+
+
+
+
+
+ +
+
+
+
+ {altText} +
+
+
+
+
+
+
+
); } diff --git a/app/refugee-physiotherapy/page.js b/app/refugee-physiotherapy/page.js deleted file mode 100644 index 5767597..0000000 --- a/app/refugee-physiotherapy/page.js +++ /dev/null @@ -1,82 +0,0 @@ -import Link from "next/link" -import Layout from "@/components/layout/Layout" - -export const metadata = { - title: "Refugee Physiotherapy at Physiotherapy Etobicoke - Rapharehab Physiotherapy clinic Etobicoke", - description: - "Explore flexible payment options and insurance coverage at Rapharehab Physiotherapy clinic and rehabilitation etobicoke. We accept a variety of insurance plans and offer convenient payment solutions to ensure you get the care you need without financial stress. Book your appointment today!", -}; - - -export default function Refugee() { - return ( - <> - - {/* chooseus-section */} -
-
-
-
-
-
- {/* Better Solutions */} -

Refugee Physiotherapy

-
-
-

At rapharehab Etobicoke Physiotherapy clinic, your treatments are partially or fully covered by health insurance plans and Workplace Safety and Insurance Board (WSIB). If you have medical health care coverage, we believe your treatment costs will be covered by health care plans. The treatments such as physiotherapy, massage therapy, chiropractic care, acupuncture, orthotics etc., all can be covered by health care insurance.

-
    -
  • In case if you are injured in a motor vehicle accident (MVA), the auto insurance covers the cost of the treatment.
  • -
  • Please get in touch with rapharehab Physiotherapy clinic etobicoke for assistance to know about your coverage.
  • -
  • We Accept Cash/Cheque/Visa/Direct Payment.
  • -
-
-
-
-
-
-
-
Payment and Insurance
-
Payment and Insurance
-
Payment and Insurance
-
-
-
-
-
-
- {/* chooseus-section end */} - {/* subscibe */} - {/*
-
-
-
-
-
-

Subscribe for the exclusive updates!

-
-
-
-
-
-
- - -
-
-
- - -
-
-
-
-
-
-
-
-
*/} - {/* subscibe end */} -
- - ) -} diff --git a/components/layout/header/Header2.js b/components/layout/header/Header2.js index 1f9a967..3170ef6 100644 --- a/components/layout/header/Header2.js +++ b/components/layout/header/Header2.js @@ -43,7 +43,6 @@ export default function Header2({
  • FAQ’s
  • What To Expect
  • Payment And Insurance
  • - {/*
  • Refugee Physiotherapy
  • */}
  • diff --git a/scripts/generate-sitemap.cjs b/scripts/generate-sitemap.cjs index 3e1e0b8..2caac20 100644 --- a/scripts/generate-sitemap.cjs +++ b/scripts/generate-sitemap.cjs @@ -54,7 +54,6 @@ const staticLinks = [ { url: '/blog/', changefreq: 'weekly', priority: 0.6 }, { url: '/contact/', changefreq: 'weekly', priority: 0.6 }, { url: '/caregivers/', changefreq: 'weekly', priority: 0.6 }, - { url: '/gallery-physiotherapy-etobicoke/', changefreq: 'weekly', priority: 0.6 }, { url: '/shortcodes/', changefreq: 'weekly', priority: 0.6 }, ]; @@ -65,7 +64,7 @@ const blogPosts = [ { slug: '/blog/osteopath-near-me-first-visit-rapha-rehab/' }, { slug: '/blog/strength-training-rehabilitation-rapha-rehab/' }, { slug: '/blog/biceps-triceps-back-workouts-rapha-rehab/' }, - { slug: '/beginner-workouts-rehab-wellness-rapha-rehab/' }, + { slug: '/blog/beginner-workouts-rehab-wellness-rapha-rehab/' }, { slug: '/blog/recover-strong-post-surgery-rehabilitation-exercises/' }, { slug: '/blog/benefits-massage-therapy-sports-injuries/' }, { slug: '/blog/shockwave-therapy-etobicoke-chronic-pain/' }, @@ -73,7 +72,7 @@ const blogPosts = [ // Convert blog slugs to sitemap entries const blogLinks = blogPosts.map(post => ({ - url: `/${post.slug}`, + url: `${post.slug}`, changefreq: 'weekly', priority: 0.6 })); @@ -122,7 +121,7 @@ const services = [ // Convert services slugs to sitemap entries const servicesLinks = services.map(post => ({ - url: `/${post.slug}`, + url: `${post.slug}`, changefreq: 'weekly', priority: 0.6 })); @@ -131,7 +130,7 @@ const servicesLinks = services.map(post => ({ // ✅ Dynamic area-of-injury const areas = [ { slug: '/area-of-injury/head-injury-physiotherapy-management-etobicoke/' }, - { slug: '/area-of-injury/neck-injury-physiotherapy-management-etobicokeneck-injury-physiotherapy-management-etobicoke/' }, + { slug: '/area-of-injury/neck-injury-physiotherapy-management-etobicoke/' }, { slug: '/area-of-injury/shoulder-injury-physiotherapy-management-etobicoke/' }, { slug: '/area-of-injury/elbow-injury-physiotherapy-management-etobicoke/' }, { slug: '/area-of-injury/wristhand-injury-physiotherapy-management-etobicoke/' }, @@ -143,7 +142,7 @@ const areas = [ // Convert Areas of Injury slugs to sitemap entries const areasLinks = areas.map(post => ({ - url: `/${post.slug}`, + url: `${post.slug}`, changefreq: 'weekly', priority: 0.6 })); @@ -159,7 +158,7 @@ const rehabilitation = [ // Convert Areas of Injury slugs to sitemap entries const rehabilitationLinks = rehabilitation.map(post => ({ - url: `/${post.slug}`, + url: `${post.slug}`, changefreq: 'weekly', priority: 0.6 })); @@ -178,7 +177,7 @@ const accident = [ // Convert Accident slugs to sitemap entries const accidentLinks = accident.map(post => ({ - url: `/${post.slug}`, + url: `${post.slug}`, changefreq: 'weekly', priority: 0.6 })); @@ -193,7 +192,7 @@ const ourteam = [ // Convert Our Team slugs to sitemap entries const ourteamLinks = ourteam.map(post => ({ - url: `/${post.slug}`, + url: `${post.slug}`, changefreq: 'weekly', priority: 0.6 })); diff --git a/utils/AreaOfInjery.utils.js b/utils/AreaOfInjery.utils.js index 569b753..dba72d0 100644 --- a/utils/AreaOfInjery.utils.js +++ b/utils/AreaOfInjery.utils.js @@ -40,7 +40,7 @@ export const areaOfInjuryData = [ }, { id: 2, - slug: "neck-injury-physiotherapy-management-etobicokeneck-injury-physiotherapy-management-etobicoke", + slug: "neck-injury-physiotherapy-management-etobicoke", title: "Neck Injuries", shortDescription: "Relieve neck pain, restore flexibility, and strengthen muscles with professional physiotherapy.", image: "/assets/images/areas-of-injury/neck-injury/left.webp",