diff --git a/src/lib/components/input/Link.svelte b/src/lib/components/input/Link.svelte
index 098d1e36..2b9e7af9 100644
--- a/src/lib/components/input/Link.svelte
+++ b/src/lib/components/input/Link.svelte
@@ -3,17 +3,39 @@
export let highlight: boolean = false
export let nowrap: boolean = false
+ const parseURL = (href: string) => {
+ try {
+ return new URL(href)
+ } catch (e) {
+ return undefined
+ }
+ }
+
+ $: richURL = parseURL(href)