Skip to content

Commit

Permalink
recognise tel: uri scheme as a non-local path
Browse files Browse the repository at this point in the history
  • Loading branch information
p-weston committed Nov 2, 2024
1 parent d79d84b commit b7c29f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plug-api/lib/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export function isFederationPath(path: string): boolean {
}

export function isLocalPath(path: string): boolean {
return !path.includes("://") && !path.startsWith("mailto:");
return !path.includes("://") &&
!path.startsWith("mailto:") &&
!path.startsWith("tel:");
}

export function rewritePageRefs(tree: ParseTree, containerPageName: string) {
Expand Down

0 comments on commit b7c29f9

Please sign in to comment.