From 353fc5b3761ef4978165f4d10dbb97f9943291d9 Mon Sep 17 00:00:00 2001 From: SamRemis Date: Wed, 13 Sep 2023 11:13:39 -0400 Subject: [PATCH] bugfix - fix broken redirects for certain links from search --- docs/source/_static/js/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.js index 02ff8294e1..03bbd2fee6 100644 --- a/docs/source/_static/js/custom.js +++ b/docs/source/_static/js/custom.js @@ -40,7 +40,7 @@ function isValidFragment(splitFragment) { } // Checks if a name is a possible resource name. function isValidResource(name, serviceDocName) { - return name.replaceAll('-', '') !== serviceDocName && !nonResourceSubHeadings.includes(name); + return name !== serviceDocName.replaceAll('-', '') && !nonResourceSubHeadings.includes(name); } // Reroutes previously existing links to the new path. // Old: /reference/services/s3.html#S3.Client.delete_bucket