-
Send
+
Send
@@ -17,7 +17,7 @@
v-bind="destinations.ethereum"
:label="`Bridge to ${destinations.ethereum.label}`"
as="RouterLink"
- :to="{ name: 'bridge-withdraw', query: $route.query }"
+ :to="{ name: 'withdraw', query: $route.query }"
/>
diff --git a/pages/bridge/withdraw.vue b/pages/withdraw.vue
similarity index 100%
rename from pages/bridge/withdraw.vue
rename to pages/withdraw.vue
diff --git a/plugins/redirects.client.ts b/plugins/redirects.client.ts
index b93d6784b..51c42dbd8 100644
--- a/plugins/redirects.client.ts
+++ b/plugins/redirects.client.ts
@@ -1,5 +1,13 @@
export default defineNuxtPlugin(() => {
const currentUrl = new URL(window.location.href);
+
+ if (currentUrl.pathname === "/") {
+ const newUrl = new URL(currentUrl.href);
+ newUrl.pathname = "/bridge";
+ navigateTo(newUrl.href, { external: true });
+ return;
+ }
+
const redirectNetworks = ["goerli", "sepolia"];
for (const network of redirectNetworks) {
if (currentUrl.origin === `https://${network}.portal.zksync.io`) {
diff --git a/scripts/updateBridgeMetaTags.ts b/scripts/updateBridgeMetaTags.ts
index 72d426019..2d61d9f32 100644
--- a/scripts/updateBridgeMetaTags.ts
+++ b/scripts/updateBridgeMetaTags.ts
@@ -7,7 +7,7 @@ import { readFile, writeFile } from "fs";
import { bridge as bridgeMeta } from "../data/meta";
-const filePaths = ["./dist/bridge/index.html", "./dist/bridge/withdraw/index.html"];
+const filePaths = ["./dist/index.html", "./dist/withdraw/index.html"];
filePaths.forEach((filePath) => {
readFile(filePath, "utf8", function (err, data) {
diff --git a/views/transactions/Deposit.vue b/views/transactions/Deposit.vue
index 245501b8b..058a1032e 100644
--- a/views/transactions/Deposit.vue
+++ b/views/transactions/Deposit.vue
@@ -379,13 +379,13 @@ const { isCustomNode } = useNetworks();
const toNetworkModalOpened = ref(false);
const toNetworkSelected = (networkKey?: string) => {
if (destinations.value.ethereum.key === networkKey) {
- router.replace({ name: "bridge-withdraw", query: route.query });
+ router.replace({ name: "withdraw", query: route.query });
}
};
const fromNetworkModalOpened = ref(false);
const fromNetworkSelected = (networkKey?: string) => {
if (destinations.value.era.key === networkKey) {
- router.replace({ name: "bridge-withdraw", query: route.query });
+ router.replace({ name: "withdraw", query: route.query });
}
};
diff --git a/views/transactions/Transfer.vue b/views/transactions/Transfer.vue
index b622365c9..522674d4e 100644
--- a/views/transactions/Transfer.vue
+++ b/views/transactions/Transfer.vue
@@ -148,7 +148,7 @@
:completed="transactionCommitted && type !== 'withdrawal'"
/>
-
+
Go to Assets page
Make another transaction
@@ -299,13 +299,13 @@ const { isCustomNode } = useNetworks();
const toNetworkModalOpened = ref(false);
const toNetworkSelected = (networkKey?: string) => {
if (destinations.value.era.key === networkKey) {
- router.replace({ name: "bridge", query: route.query });
+ router.replace({ name: "index", query: route.query });
}
};
const fromNetworkModalOpened = ref(false);
const fromNetworkSelected = (networkKey?: string) => {
if (destinations.value.ethereum.key === networkKey) {
- router.replace({ name: "bridge", query: route.query });
+ router.replace({ name: "index", query: route.query });
}
};