Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update action.ts

Steven Tey16c9c676882b
diff --git a/apps/web/app/protected/[domain]/[key]/action.ts b/apps/web/app/protected/[domain]/[key]/action.ts
index 0c0f914f07..c75bc933cf 100644
--- a/apps/web/app/protected/[domain]/[key]/action.ts
+++ b/apps/web/app/protected/[domain]/[key]/action.ts
@@ -20,12 +20,7 @@ export async function verifyPassword(_prevState: any, data: FormData) {
if (validPassword) {
// if the password is valid, redirect to the link with the password in the query string
- redirect(
- `${linkConstructor({
- domain,
- key: rawKey,
- })}?pw=${password}`,
- );
+ redirect(`/${rawKey}?pw=${password}`);
} else {
return { error: "Invalid password" };
}