an app to share curated trails sidetrail.app
atproto nextjs react rsc
50
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix redirect URL

authored by

Emelia Smith and committed by
Tangled
83d364b4 363f5960

+4 -1
+4 -1
auth/actions.ts
··· 6 6 7 7 export async function login(formData: FormData) { 8 8 const rawHandle = formData.get("loginHint") as string; 9 - const returnUrl = (formData.get("returnUrl") as string) || "/"; 9 + let returnUrl = (formData.get("returnUrl") as string) || "/"; 10 + if (!returnUrl.startsWith('/')) { 11 + returnUrl = '/' 12 + } 10 13 11 14 const handle = rawHandle?.trim().replace(/^@/, ""); 12 15