Update topic url

This commit is contained in:
Ramon Wenger 2020-06-04 12:59:47 +02:00
parent b6eafe2b4d
commit 7105082a56
1 changed files with 2 additions and 14 deletions

View File

@ -1,7 +1,6 @@
import Vue from 'vue'
// import index from '@/pages/index'
import topic from '@/pages/topic'
import book from '@/pages/book'
import moduleBase from '@/pages/module-base'
import module from '@/pages/module'
import rooms from '@/pages/rooms'
@ -109,8 +108,7 @@ const routes = [
{
path: '/instruments/',
name: 'instrument-overview',
component: instrumentOverview,
meta: {subnavigation: true}
component: instrumentOverview
},
{path: '/instrument/:slug', name: 'instrument', component: instrument, meta: {layout: 'simple'}},
{path: '/submission/:id', name: 'submission', component: submission, meta: {layout: 'simple'}},
@ -118,17 +116,7 @@ const routes = [
{path: '/portfolio/:slug', name: 'project', component: project, props: true},
{path: '/new-project/', name: 'new-project', component: newProject},
{path: '/edit-project/:id', name: 'edit-project', component: editProject, props: true},
{
path: '/book',
name: 'book',
component: book,
meta: {
subnavigation: true
},
children: [
{path: 'topic/:topicSlug', name: 'topic', component: topic, meta: {subnavigation: true}}
]
},
{path: '/topic/:topicSlug', name: 'topic', component: topic, alias: '/book/topic/:topicSlug'},
{
path: '/me',
component: profilePage,