Skip to content

Commit

Permalink
Don't want on internal links
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Mar 3, 2024
1 parent b70c404 commit afbbcbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/strings/url-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ export function feedUriToHref(url: string): string {
*/
export function linkRequiresWarning(uri: string, label: string) {
const labelDomain = labelToDomain(label)
const isExternal = isExternalUrl(uri)

if (!isExternal) return false

let urip
try {
Expand Down

0 comments on commit afbbcbc

Please sign in to comment.