diff options
| author | Adam Soltys <[email protected]> | 2023-11-28 09:02:03 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-11-28 09:02:07 -0800 |
| commit | 05b0b98163303a701f4cf1f765a3fe9acd61dde5 (patch) | |
| tree | ab97ddb1c093fd2c1e1d6d2b0bcb38a635bbcd53 /src | |
| parent | 4b5a937799204710e25fad63f0b03ecc83870fa5 (diff) | |
| download | coinos-ui-05b0b98163303a701f4cf1f765a3fe9acd61dde5.tar.gz coinos-ui-05b0b98163303a701f4cf1f765a3fe9acd61dde5.zip | |
handle links without http: prefix
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/send/[...text]/+page.server.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js index 6b4b000e..3ca50bca 100644 --- a/src/routes/(app)/send/[...text]/+page.server.js +++ b/src/routes/(app)/send/[...text]/+page.server.js @@ -8,6 +8,7 @@ let parse = async (t, host) => { if (!t) return; if (t.startsWith('http')) throw redirect(307, t); + if (t.startsWith(host)) throw redirect(307, `http://${t}`); let amount, user, id; |
