From 83646eba37a6d1e6cbf49b04929aead620bf8811 Mon Sep 17 00:00:00 2001 From: Peter Weston <59482636+p-weston@users.noreply.github.com> Date: Sat, 2 Nov 2024 21:34:26 +0000 Subject: [PATCH] recognise tel: uri scheme as a non-local path (#1139) --- plug-api/lib/resolve.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plug-api/lib/resolve.ts b/plug-api/lib/resolve.ts index 85070b51..a8f75aaf 100644 --- a/plug-api/lib/resolve.ts +++ b/plug-api/lib/resolve.ts @@ -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) {