Skip to content

Commit 68a8052

Browse files
committed
Use absolute_url filter for canonical and og:url
1 parent eeb5c18 commit 68a8052

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_includes/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
{% if include.description %}
1111
<meta name="description" content="{{ include.description | strip_html | strip }}">
1212
<meta property="og:description" content="{{ include.description | strip_html | strip }}">
13-
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
14-
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
13+
<link rel="canonical" href="{{ page.url | absolute_url }}">
14+
<meta property="og:url" content="{{ page.url | absolute_url }}">
1515
<meta property="og:site_name" content="{{ include.site_name }}">
1616
<meta property="og:image" content="{{ include.og_image }}">
1717
{% endif %}

0 commit comments

Comments
 (0)