From 5f1653669e2e56990ff0f4e6116990038062dd6a Mon Sep 17 00:00:00 2001 From: gulam159 Date: Wed, 11 Dec 2024 01:19:33 +0530 Subject: [PATCH] fix: hrefLang issue due to missing trailingSlash --- docusaurus.config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 79264a20..1ee1652d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -15,7 +15,7 @@ const config = { favicon: "https://orkes.io/icons/icon-144x144.png", organizationName: "orkes-io", // Usually your GitHub org/user name. projectName: "docs", // Usually your repo name. - trailingSlash: false, + trailingSlash: true, scripts: [ "https://www.googletagmanager.com/gtag/js?id=G-4400JPTLRF", { @@ -39,7 +39,12 @@ const config = { [ "@docusaurus/plugin-client-redirects", { - redirects: [], + redirects: [ + { + from: baseUrlName, + to: baseUrlName + "/", + }, + ], }, ], [