about summary refs log tree commit diff
path: root/src/lib/strings
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2025-03-11 12:50:17 -0700
committerGitHub <noreply@github.com>2025-03-11 12:50:17 -0700
commit490e381270a1cb0157cdaef3182b900d07660fd8 (patch)
tree9714c60d727caf82ccd475c32ca87ee79e6a75e2 /src/lib/strings
parent26fb0a7f171b334427317afb2c6fc54bcba97f81 (diff)
downloadvoidsky-490e381270a1cb0157cdaef3182b900d07660fd8.tar.zst
encode url (#7968)
Diffstat (limited to 'src/lib/strings')
-rw-r--r--src/lib/strings/url-helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/strings/url-helpers.ts b/src/lib/strings/url-helpers.ts
index bb533b12e..df473b54e 100644
--- a/src/lib/strings/url-helpers.ts
+++ b/src/lib/strings/url-helpers.ts
@@ -332,7 +332,7 @@ export function createProxiedUrl(url: string): string {
     return url
   }
 
-  return `https://go.bsky.app/redirect?u=${url}`
+  return `https://go.bsky.app/redirect?u=${encodeURIComponent(url)}`
 }
 
 export function isShortLink(url: string): boolean {