Hotfix/ Embed Tabs (#4593)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-09-19 10:47:46 +01:00
1 parent 6e71de7ca3
commit 2f3d7318a4
5 files changed
+57 -49

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ export function Dialog(props: DialogProps) {
}
router.push(
{
pathname: router.pathname,
pathname: router.pathname.replace("/v2", ""),
query: {
...router.query,
},
+3 -1
View File
@@ -33,7 +33,9 @@ export function Dialog(props: DialogProps) {
}
router.push(
{
pathname: router.pathname,
// This is temporary till we are doing rewrites to /v2.
// If not done, opening/closing a modalbox can take the user to /v2 paths.
pathname: router.asPath.replace("/v2", ""),
query: {
...router.query,
},