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