File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/components/EasyLayout Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ module.exports = {
39
39
} ,
40
40
41
41
canonicalURL : function ( node ) {
42
- return this . urlpath ( node ) ;
42
+ const relpath = this . urlpath ( node ) . split ( path . posix . sep ) . slice ( 3 ) . join ( path . posix . sep ) ;
43
+ return `https://www.getambassador.io/docs/telepresence/latest/${ relpath } ` ;
43
44
} ,
44
45
45
46
githubURL : function ( node ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default function EasyLayout({
25
25
< Layout location = { location } >
26
26
< Helmet >
27
27
< title > { title } | { data . site . siteMetadata . title } </ title >
28
- < link rel = "canonical" href = { `${ data . site . siteMetadata . siteURL } ${ location . pathname } ` } />
28
+ < link rel = "canonical" href = { `https://www.getambassador.io/docs/telepresence ${ location . pathname } ` } />
29
29
{ description && < meta name = "description" content = { description } /> }
30
30
</ Helmet >
31
31
{ children }
You can’t perform that action at this time.
0 commit comments