Fix router routes
This commit is contained in:
parent
5ec83cbd9c
commit
16dc46653f
|
@ -76,22 +76,22 @@ p.catch(err => {
|
|||
|
||||
routes = routes.concat([
|
||||
{
|
||||
path: base + locale,
|
||||
component: Search,
|
||||
name: 'home'
|
||||
path: base,
|
||||
component: Search
|
||||
},
|
||||
{
|
||||
path: base + 'search',
|
||||
component: Search
|
||||
},
|
||||
{
|
||||
path: '/*',
|
||||
// Don't want to create a 404 page
|
||||
component: Search
|
||||
}
|
||||
])
|
||||
}
|
||||
|
||||
routes.push({
|
||||
path: '/*',
|
||||
// Don't want to create a 404 page
|
||||
component: Search
|
||||
})
|
||||
|
||||
const router = new Router({
|
||||
mode: 'history',
|
||||
routes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<my-header v-if="!searchDone" v-bind:indexName="indexName"></my-header>
|
||||
<router-link v-else class="header-left-logo" :to="{ name: 'home' }" @click.native="simpleFormReset(false)" :title="homeTitleMessage">
|
||||
<router-link v-else class="header-left-logo" to="/" @click.native="simpleFormReset(false)" :title="homeTitleMessage">
|
||||
<img src="/img/peertube-logo.svg" alt="">
|
||||
</router-link>
|
||||
|
||||
|
|
Loading…
Reference in New Issue