Skip to content

Commit

Permalink
bugfix - fix broken redirects for certain links from search
Browse files Browse the repository at this point in the history
  • Loading branch information
SamRemis committed Sep 13, 2023
1 parent 7a6c50a commit 353fc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: <root_url>/reference/services/s3.html#S3.Client.delete_bucket
Expand Down

0 comments on commit 353fc5b

Please sign in to comment.