···148148export function linkRequiresWarning(uri: string, label: string) {
149149 const labelDomain = labelToDomain(label)
150150151151+ // If the uri started with a / we know it is internal.
152152+ if (uri.startsWith('/')) {
153153+ return false
154154+ }
155155+151156 let urip
152157 try {
153158 urip = new URL(uri)
···156161 }
157162158163 const host = urip.hostname.toLowerCase()
159159-160164 // Hosts that end with bsky.app or bsky.social should be trusted by default.
161165 if (
162162- uri.startsWith('/') ||
163166 host.endsWith('bsky.app') ||
164167 host.endsWith('bsky.social') ||
165168 host.endsWith('blueskyweb.xyz')