Skip to content
Snippets Groups Projects
Verified Commit 8c650021 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use hash for group tabs

parent 8486a0d5
No related branches found
No related tags found
1 merge request!1695Fix URL patterns to follow URL scheme
Pipeline #195136 canceled
......@@ -30,16 +30,14 @@ export default {
required: false,
default: null,
},
tabSlug: {
type: String,
required: false,
default: "default",
},
},
computed: {
tabs() {
return collections.coreGroupOverview.items;
},
tabSlug() {
return this.$hash;
},
},
mounted() {
const tab = this.tabs.findIndex((tab) => tab.tab.id === this.tabSlug);
......@@ -61,8 +59,8 @@ export default {
if (this.tabSlug !== tabSlug) {
this.$router.push({
name: "core.groupWithTab",
params: { id: this.id, tabSlug },
...this.$route,
hash: "#" + tabSlug,
});
}
},
......
......@@ -203,15 +203,6 @@ const routes = [
},
name: "core.editGroup",
},
{
path: "/groups/:id(\\d+)/:tabSlug([^\\s!?\\/*#|]+)",
component: () => import("./components/group/GroupOverview.vue"),
props: true,
name: "core.groupWithTab",
meta: {
permission: "core.view_groups_rule",
},
},
{
path: "/group_type/",
component: () => import("./components/group_type/GroupType.vue"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment