Commit 1a9e7774 by Johannes Edmeier

use named routes

this ensures that the application name gets escaped
parent e9faba5a
......@@ -101,13 +101,13 @@
}),
methods: {
select(name) {
this.$router.push(`/applications/${name}`);
this.$router.push({name: 'applications', params: {selected: name}});
},
deselect() {
this.$router.push('/applications');
this.$router.push({name: 'applications'});
},
showDetails(instance) {
this.$router.push(`/instances/${instance.id}`);
this.$router.push({name: 'instance/details', params: {instanceId: instance.id}});
},
async unregister(item) {
try {
......
......@@ -54,7 +54,7 @@
return null;
},
select(application) {
this.$router.push(`/applications/${application.name}`);
this.$router.push({name: 'applications', params: {selected: application.name}});
},
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment