alpha
Login
or
Join now
danabra.mov
/
sidetrail
Star
1
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
an app to share curated trails
sidetrail.app
Star
1
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Fix redirect URL
author
Emelia Smith
committer
Tangled
date
6 months ago
(Dec 6, 2025, 9:10 AM UTC)
commit
83d364b4
83d364b4dd27b8a5127cb472a6b35f91abd17140
parent
363f5960
363f5960abcca6e57f0a3dd81bc91ae8b34343d2
+4
-1
1 changed file
Expand all
Collapse all
Unified
Split
auth
actions.ts
+4
-1
auth/actions.ts
Reviewed
···
6
6
7
7
export async function login(formData: FormData) {
8
8
const rawHandle = formData.get("loginHint") as string;
9
9
-
const returnUrl = (formData.get("returnUrl") as string) || "/";
9
9
+
let returnUrl = (formData.get("returnUrl") as string) || "/";
10
10
+
if (!returnUrl.startsWith('/')) {
11
11
+
returnUrl = '/'
12
12
+
}
10
13
11
14
const handle = rawHandle?.trim().replace(/^@/, "");
12
15