Skip to content

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

Set empty path for the current route to make the link not clickable in the breadcrumb

天舟d5dcadf9c0de
diff --git a/frontend/src/components/Breadcrumb.vue b/frontend/src/components/Breadcrumb.vue
index f300e0b6e3..3ac5e766fd 100644
--- a/frontend/src/components/Breadcrumb.vue
+++ b/frontend/src/components/Breadcrumb.vue
@@ -179,7 +179,10 @@ export default {
if (currentRoute.value.meta.title) {
list.push({
name: currentRoute.value.meta.title(currentRoute.value),
- path: currentRoute.value.path,
+ // Set empty path for the current route to make the link not clickable.
+ // We do this because clicking the current route path won't trigger reload and would
+ // confuse user since UI won't change while we may have cleared all query parameters.
+ path: "",
});
}