Skip to content

Commit 95e4ddc

Browse files
author
markzegarelli
authored
Merge pull request #1626 from segmentio/DOC-191_update-link-rel
update link rel
2 parents cb57940 + 87dd38c commit 95e4ddc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_layouts/default.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@
4646
{%- endif -%}
4747
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
4848
<link rel="icon" href="https://segment.com/favicon.ico">
49+
4950
{%- if jekyll.environment == "production" -%}
5051
{%- assign hostname = "https://segment.com" -%}
5152
{%- elsif jekyll.environment == "staging" -%}
5253
{%- assign hostname = "https://segment.build" -%}
5354
{%- else -%}
5455
{%- assign hostname = "" -%}
5556
{%- endif -%}
56-
<link rel="canonical" href="{{hostname}}/docs{{page.url}}" />
57+
<link rel="canonical" href="{{site.url}}/docs{{page.url}}" />
5758
<meta name="application-name" content="Segment">
5859
<meta name="theme-color" content="#00386C">
5960
<meta charset="utf-8">

0 commit comments

Comments
 (0)