Fix router routes

This commit is contained in:
Chocobozzz 2020-09-16 10:13:28 +02:00
parent 5ec83cbd9c
commit 16dc46653f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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>