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.

Navigate to the created link's folder

Tim Wilson4f5a385e79b7
diff --git a/apps/web/ui/modals/link-builder/index.tsx b/apps/web/ui/modals/link-builder/index.tsx
index 0eb02a878c..a71ac104fa 100644
--- a/apps/web/ui/modals/link-builder/index.tsx
+++ b/apps/web/ui/modals/link-builder/index.tsx
@@ -299,6 +299,11 @@ function LinkBuilderInner({
// Mutate workspace to update usage stats
mutate(`/api/workspaces/${slug}`);
+
+ // Navigate to the link's folder
+ if (data.folderId)
+ queryParams({ set: { folderId: data.folderId } });
+ else queryParams({ del: ["folderId"] });
} else {
const { error } = await res.json();