Skip to content

Commit

Permalink
Fix og:url (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Oct 7, 2024
1 parent 276f3a2 commit c77c516
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/views/r-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
// the seo partial renders with the context of the current page (root context)
this.link('', 'rootContext', { instance: rPage.parent });
this.link('', 'rPageContext', { instance: rPage });

// Update the shared path on page switch.
this.set('@shared.actualPath', this.get('@shared')?.app?.router?.uri?.path);
},
};
</script>
2 changes: 1 addition & 1 deletion src/views/r-page-globalping.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta property="og:type" content="website">
<meta property="og:title" content="{{title || 'Globalping - Internet and web infrastructure monitoring and benchmarking'}}">
<meta property="og:description" content="{{description || 'Run free latency tests and network commands like ping, traceroute, HTTP and DNS resolve on probes located worldwide.'}}">
<meta property="og:url" content="{{@shared.serverHost}}">
<meta property="og:url" content="{{@shared.serverHost}}{{@shared.actualPath}}">
<meta property="og:site_name" content="Globalping">

{{#if openGraphImage}}
Expand Down
2 changes: 1 addition & 1 deletion src/views/r-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta property="og:type" content="website">
<meta property="og:title" content="{{title || 'jsDelivr - A free, fast, and reliable CDN for JS and Open Source'}}">
<meta property="og:description" content="{{description || 'Optimized for JS and ESM delivery from npm and GitHub. Works with all web formats. Serving more than 150 billion requests per month.'}}">
<meta property="og:url" content="{{@shared.serverHost}}">
<meta property="og:url" content="{{@shared.serverHost}}{{@shared.actualPath}}">
<meta property="og:site_name" content="jsDelivr">

{{#if openGraphImage}}
Expand Down

0 comments on commit c77c516

Please sign in to comment.