From d9216bd2d00abc27690e6e86c798e0ddb25ab62a Mon Sep 17 00:00:00 2001 From: Julia Date: Thu, 23 Nov 2023 18:04:31 +0400 Subject: [PATCH] updated redirect --- gridsome.server.js | 1 - src/pages/Certificates.vue | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/gridsome.server.js b/gridsome.server.js index 5aa554e6e3..b1b3e518b3 100644 --- a/gridsome.server.js +++ b/gridsome.server.js @@ -330,7 +330,6 @@ stream.write(`\n- link: ${options.path} createNewRedirect(`/online-courses/introduction-course`, '/learn/introduction-course/overview') createNewRedirect(`/online-courses/smart-home-course`, '/learn/smart-home-course/overview') createNewRedirect(`/online-courses/sensors-connectivity-course`, '/learn/sensors-connectivity-course/overview') - createNewRedirect('/certificates', '/learn/') oldCourses.forEach(path => { createNewRedirect(`/online-courses/${path.old}`, `/learn/${path.new}/overview`,) diff --git a/src/pages/Certificates.vue b/src/pages/Certificates.vue index eb8918ba6f..8764a18102 100644 --- a/src/pages/Certificates.vue +++ b/src/pages/Certificates.vue @@ -112,6 +112,24 @@ } }, + metaInfo() { + return { + meta: [ + { + 'http-equiv': 'refresh', + content: `0; url="https://robonomics.academy"` + } + ], + link: () => [ + { + rel: 'canonical', + href: `https://robonomics.academy`, + id: 'canonical', + }, + ], + } + }, + computed: { courses() { return courses;