Skip to content

Commit

Permalink
continue
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Aug 7, 2024
1 parent 00b6ea3 commit 5f1a95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/validate-docs-links/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async function prepareDocumentMapEntry(
// Checks if the links point to existing documents
function validateInternalLink(errors: Errors, href: string): void {
// /docs/api/example#heading -> ["api/example", "heading""]
const [link, hash] = href.replace("/", "").split("#", 2);
const [link, hash] = href.replace(DOCS_PATH, "").split("#", 2);

let foundPage;

Expand Down

0 comments on commit 5f1a95f

Please sign in to comment.