Changed range toggles to links for home and actor pages.
This commit is contained in:
@@ -18,10 +18,24 @@ Vue.use(VueRouter);
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
redirect: { name: 'home' },
|
||||
redirect: {
|
||||
name: 'home',
|
||||
params: {
|
||||
range: 'latest',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
redirect: {
|
||||
name: 'home',
|
||||
params: {
|
||||
range: 'latest',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/:range',
|
||||
component: Home,
|
||||
name: 'home',
|
||||
},
|
||||
@@ -37,8 +51,19 @@ const routes = [
|
||||
},
|
||||
{
|
||||
path: '/actor/:actorSlug',
|
||||
component: Actor,
|
||||
name: 'actor',
|
||||
redirect: from => ({
|
||||
name: 'actorRange',
|
||||
params: {
|
||||
...from.params,
|
||||
range: 'latest',
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: '/actor/:actorSlug/:range',
|
||||
component: Actor,
|
||||
name: 'actorRange',
|
||||
},
|
||||
{
|
||||
path: '/site/:siteSlug',
|
||||
|
||||
Reference in New Issue
Block a user