Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: remove linkId from query
Marc Seitz976a61644fa2
diff --git a/components/view/DataroomViewer.tsx b/components/view/DataroomViewer.tsxindex c3db6607..8fce80b6 100644--- a/components/view/DataroomViewer.tsx+++ b/components/view/DataroomViewer.tsx@@ -109,6 +109,7 @@ export default function DataroomViewer({delete currentQuery.email;delete currentQuery.domain;delete currentQuery.slug;+ delete currentQuery.linkId;const currentPath = router.asPath.split("?")[0];diff --git a/components/view/PagesViewerNew.tsx b/components/view/PagesViewerNew.tsxindex 66e2d25a..2a755a71 100644--- a/components/view/PagesViewerNew.tsx+++ b/components/view/PagesViewerNew.tsx@@ -334,7 +334,7 @@ export default function PagesViewer({};if (!dataroomId && router.query.token) {- removeQueryParams(["token", "email", "domain", "slug"]);+ removeQueryParams(["token", "email", "domain", "slug", "linkId"]);}}, []); // Run once on mountdiff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsxindex 4296bb7a..149c74c7 100644--- a/components/view/dataroom/dataroom-view.tsx+++ b/components/view/dataroom/dataroom-view.tsx@@ -218,6 +218,7 @@ export default function DataroomView({delete currentQuery.email;delete currentQuery.domain;delete currentQuery.slug;+ delete currentQuery.linkId;const currentPath = router.asPath.split("?")[0];diff --git a/components/view/document-view.tsx b/components/view/document-view.tsxindex bcfe5f88..03a1d9fc 100644--- a/components/view/document-view.tsx+++ b/components/view/document-view.tsx@@ -179,6 +179,7 @@ export default function DocumentView({delete currentQuery.email;delete currentQuery.domain;delete currentQuery.slug;+ delete currentQuery.linkId;const currentPath = router.asPath.split("?")[0];diff --git a/components/view/viewer/image-viewer.tsx b/components/view/viewer/image-viewer.tsxindex a26fd90f..72d647e9 100644--- a/components/view/viewer/image-viewer.tsx+++ b/components/view/viewer/image-viewer.tsx@@ -229,7 +229,7 @@ export default function ImageViewer({};if (!dataroomId && router.query.token) {- removeQueryParams(["token", "email", "domain", "slug"]);+ removeQueryParams(["token", "email", "domain", "slug", "linkId"]);}}, []); // Run once on mount