cononical url dynamicly updated
This commit is contained in:
parent
b0fefb6896
commit
a75724b2b1
@ -1,3 +1,4 @@
|
|||||||
|
"use client";
|
||||||
import { poppins } from "@/lib/font";
|
import { poppins } from "@/lib/font";
|
||||||
import "@/node_modules/react-modal-video/css/modal-video.css";
|
import "@/node_modules/react-modal-video/css/modal-video.css";
|
||||||
import "../public/assets/css/bootstrap.css";
|
import "../public/assets/css/bootstrap.css";
|
||||||
@ -7,21 +8,23 @@ import "swiper/css";
|
|||||||
import "swiper/css/pagination";
|
import "swiper/css/pagination";
|
||||||
import "swiper/css/free-mode";
|
import "swiper/css/free-mode";
|
||||||
import Script from "next/script";
|
import Script from "next/script";
|
||||||
|
import { usePathname } from "next/navigation";
|
||||||
export const metadata = {
|
|
||||||
title: "Best Pain Relief & Physiotherapy - Repharehab Clinic",
|
|
||||||
description:
|
|
||||||
"Rapharehab offers trusted physiotherapy and pain relief treatments with professional care tailored to restore your health and mobility.",
|
|
||||||
};
|
|
||||||
|
|
||||||
export default function RootLayout({ children }) {
|
export default function RootLayout({ children }) {
|
||||||
|
const pathname = usePathname();
|
||||||
const siteUrl = "https://rapharehab.ca";
|
const siteUrl = "https://rapharehab.ca";
|
||||||
|
const canonicalUrl = `${siteUrl}${pathname}`;
|
||||||
const logoUrl = `${siteUrl}/assets/images/logo.png`;
|
const logoUrl = `${siteUrl}/assets/images/logo.png`;
|
||||||
const ogImage = `${siteUrl}/assets/images/logo.jpg`;
|
const ogImage = `${siteUrl}/assets/images/logo.jpg`;
|
||||||
|
|
||||||
|
const pageTitle = "Best Pain Relief & Physiotherapy - Repharehab Clinic";
|
||||||
|
const pageDescription = "Rapharehab offers trusted physiotherapy and pain relief treatments with professional care tailored to restore your health and mobility.";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en" className={`${poppins.variable}`}>
|
<html lang="en" className={`${poppins.variable}`}>
|
||||||
<head>
|
<head>
|
||||||
|
<title>{pageTitle}</title>
|
||||||
|
<meta name="description" content={pageDescription} />
|
||||||
{/* ✅ Preload critical font */}
|
{/* ✅ Preload critical font */}
|
||||||
{/* <link
|
{/* <link
|
||||||
rel="preload"
|
rel="preload"
|
||||||
@ -32,7 +35,7 @@ export default function RootLayout({ children }) {
|
|||||||
/> */}
|
/> */}
|
||||||
|
|
||||||
{/* ✅ Canonical Tag */}
|
{/* ✅ Canonical Tag */}
|
||||||
<link rel="canonical" href={siteUrl} aria-label="Site Url" />
|
<link rel="canonical" href={canonicalUrl} aria-label="Site Url" />
|
||||||
|
|
||||||
{/* ✅ Open Graph Meta */}
|
{/* ✅ Open Graph Meta */}
|
||||||
<meta property="og:title" content="Rapha Rehab – Physiotherapy Clinic" />
|
<meta property="og:title" content="Rapha Rehab – Physiotherapy Clinic" />
|
||||||
@ -41,7 +44,7 @@ export default function RootLayout({ children }) {
|
|||||||
content="Trusted physiotherapy, pain relief and rehab clinic in Etobicoke. Book your appointment now."
|
content="Trusted physiotherapy, pain relief and rehab clinic in Etobicoke. Book your appointment now."
|
||||||
/>
|
/>
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content={siteUrl} />
|
<meta property="og:url" content={canonicalUrl} />
|
||||||
<meta property="og:image" content={ogImage} />
|
<meta property="og:image" content={ogImage} />
|
||||||
<meta property="og:site_name" content="Rapha Rehab" />
|
<meta property="og:site_name" content="Rapha Rehab" />
|
||||||
<meta property="og:locale" content="en_CA" />
|
<meta property="og:locale" content="en_CA" />
|
||||||
@ -84,7 +87,7 @@ export default function RootLayout({ children }) {
|
|||||||
{JSON.stringify({
|
{JSON.stringify({
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "PhysiotherapyClinic",
|
"@type": "PhysiotherapyClinic",
|
||||||
name: "Repharehab Clinic",
|
name: "Rapharehab Clinic",
|
||||||
image: logoUrl,
|
image: logoUrl,
|
||||||
"@id": siteUrl,
|
"@id": siteUrl,
|
||||||
url: siteUrl,
|
url: siteUrl,
|
||||||
|
|||||||
@ -1789,7 +1789,7 @@ export const servicesList = [
|
|||||||
"description": `<div>
|
"description": `<div>
|
||||||
<div class="text-box">
|
<div class="text-box">
|
||||||
<h2>Chronic Pain Management in Etobicoke</h2>
|
<h2>Chronic Pain Management in Etobicoke</h2>
|
||||||
<p class="mb_15">Reduce Pain • Improve Function • Live Comfortably</p>
|
<p class="mb_15"><b>Reduce Pain • Improve Function • Live Comfortably</b></p>
|
||||||
<p class="mb_15">Chronic pain management at <b>Rapha Rehab, Etobicoke</b>, focuses on helping individuals who experience long-lasting pain that affects daily activities, mobility, and overall well-being. Our multidisciplinary team uses evidence-based treatments to manage pain, restore movement, and improve quality of life — even for long-standing or complex conditions.</p> <p class="mb_40">Whether your pain is from injury, arthritis, nerve issues, posture, or chronic illness, we create a personalized plan to help you move better and feel better.</p>
|
<p class="mb_15">Chronic pain management at <b>Rapha Rehab, Etobicoke</b>, focuses on helping individuals who experience long-lasting pain that affects daily activities, mobility, and overall well-being. Our multidisciplinary team uses evidence-based treatments to manage pain, restore movement, and improve quality of life — even for long-standing or complex conditions.</p> <p class="mb_40">Whether your pain is from injury, arthritis, nerve issues, posture, or chronic illness, we create a personalized plan to help you move better and feel better.</p>
|
||||||
|
|
||||||
<h3 class="mb_15">What is Chronic Pain Management?</h3>
|
<h3 class="mb_15">What is Chronic Pain Management?</h3>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user