Skip to content

Commit a98d95d

Browse files
committed
fix back-/forward-navigation for application list when item is selected
1 parent 1a9e777 commit a98d95d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spring-boot-admin-server-ui/src/main/frontend/views/applications/applications-list.vue

+6-3
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,13 @@
101101
}),
102102
methods: {
103103
select(name) {
104-
this.$router.push({name: 'applications', params: {selected: name}});
104+
this.$router.replace({name: 'applications', params: {selected: name}});
105105
},
106-
deselect() {
107-
this.$router.push({name: 'applications'});
106+
deselect(event) {
107+
if (event && event.target instanceof HTMLAnchorElement) {
108+
return;
109+
}
110+
this.$router.replace({name: 'applications'});
108111
},
109112
showDetails(instance) {
110113
this.$router.push({name: 'instance/details', params: {instanceId: instance.id}});

0 commit comments

Comments
 (0)