Skip to content

Commit

Permalink
remove trailing slash for the root path
Browse files Browse the repository at this point in the history
  • Loading branch information
avosalmon committed Aug 20, 2023
1 parent a6c26ff commit 55940d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/default.vue
Expand Up @@ -121,11 +121,13 @@ export default {
MobileMenu,
},
head() {
const path = this.$route.path === '/' ? '' : this.$route.path
return {
link: [
{
rel: 'canonical',
href: `${process.env.BASE_URL}${this.$route.path}`,
href: `${process.env.BASE_URL}${path}`,
},
],
}
Expand Down

0 comments on commit 55940d2

Please sign in to comment.