Skip to content

Commit

Permalink
Merge pull request #189 from zirreal/main
Browse files Browse the repository at this point in the history
updated redirect
  • Loading branch information
zirreal authored Nov 23, 2023
2 parents 6f3369c + d9216bd commit 5037128
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion gridsome.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,)
Expand Down
18 changes: 18 additions & 0 deletions src/pages/Certificates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5037128

Please sign in to comment.