Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Do not need to fetch the backend data again when only url anchor changes

天舟2b8d2c671d98
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 8082c20c5e..e6154345ed 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -657,6 +657,13 @@ router.beforeEach((to, from, next) => {
return;
}
+ // We may just change the anchor (e.g. in Issue Detail view), thus we don't need
+ // to fetch the data to verify its existence since we have already verified before.
+ if (to.name == from.name) {
+ next();
+ return;
+ }
+
const routerSlug = store.getters["router/routeSlug"](to);
const environmentSlug = routerSlug.environmentSlug;
const projectSlug = routerSlug.projectSlug;