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.

remove router.push

Steven Tey76bc425626b9
diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsx
index c0d917b1a0..f1f5b6352a 100644
--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx
@@ -434,9 +434,6 @@ function AddEditLinkModal({
toast.success("Successfully updated shortlink!");
}
setShowAddEditLinkModal(false);
- if (pathname !== `/${slug}`) {
- router.push(`/${slug}`);
- }
} else {
const { error } = await res.json();
if (error) {