From 2a371abc3564a230832780c237e11fcc955a3e0b Mon Sep 17 00:00:00 2001 From: Oliver Bristow Date: Thu, 28 May 2020 23:57:39 +0100 Subject: [PATCH] Workaround trailing slashes on website This is as the website deployment 301s to add trailing slashes, and Docusurus does not yet support that. Without one of the two yielding, this workaround strips the trailing slash so the hrefs made still work. Solution pinched from docusurus issue: https://github.com/facebook/docusaurus/issues/2394 --- website2/website/siteConfig.js | 3 ++- website2/website/static/js/fix-location.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 website2/website/static/js/fix-location.js diff --git a/website2/website/siteConfig.js b/website2/website/siteConfig.js index 9651231ef43..e8fa9c9da3c 100644 --- a/website2/website/siteConfig.js +++ b/website2/website/siteConfig.js @@ -110,7 +110,8 @@ const siteConfig = { // Add custom scripts here that would be placed in