From cd33f6663c474fc4cfe7a1093a741f6fb5ff82f5 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 28 Feb 2024 14:51:40 -0500 Subject: [PATCH 1/2] chore: remove trailing slash to avoid flash of 404 page Jared told me that to avoid the flash of the 404 page when going to the v5 docs you need to link to it without the trailing slash. --- versionsArchived.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versionsArchived.json b/versionsArchived.json index 7316dab3747..56bd2d5bcb6 100644 --- a/versionsArchived.json +++ b/versionsArchived.json @@ -1,3 +1,3 @@ { - "v5": "https://ionic-docs-5utg8ms4c-ionic1.vercel.app/docs/v5/" + "v5": "https://ionic-docs-5utg8ms4c-ionic1.vercel.app/docs/v5" } From c19efff89c26d4ebc25d25480eb5316eb81c2b19 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 28 Feb 2024 17:10:27 -0500 Subject: [PATCH 2/2] Update docusaurus.config.js --- docusaurus.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 44e25594cae..b9fceb3f83c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -15,6 +15,11 @@ const VERSIONS_JSON = require('./versions.json'); * that are built with Docusaurus. The * Ionic v3 and v4 docs are built with other tools, so those * versions are not included here. + * + * Note that the urls specified in this file should + * NOT have a trailing slash otherwise users will + * briefly get a 404 Page Not Found error before + * the docuementation website loads. */ const ARCHIVED_VERSIONS_JSON = require('./versionsArchived.json');