From 6ac101a261e2d361d0c5cc84a763ad09fb04567b Mon Sep 17 00:00:00 2001 From: e11sy Date: Sat, 20 Jul 2024 21:27:56 +0300 Subject: [PATCH] added canonical link --- nuxt.config.js | 7 ------- pages/ru.vue | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index e5b5f85..60d751c 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,11 +1,4 @@ export default { - router: { - /** - * This will not allow to visit route with trailing slash - * (else redirect will be treated as navigation to the current page and error will be raised) - */ - trailingSlash: false, - }, // Target (https://go.nuxtjs.dev/config-target) target: 'static', diff --git a/pages/ru.vue b/pages/ru.vue index 7755cfa..1d2a117 100644 --- a/pages/ru.vue +++ b/pages/ru.vue @@ -380,6 +380,13 @@ export default Vue.extend({ head() { return { title: "Хоук — российский трекер ошибок", + link: [ + { + rel: 'canonical', + href: 'https://hawk.so/ru/', + id: 'canonical' + }, + ], meta: [ { hid: 'description',