Skip to content

Commit 87dd38c

Browse files
committed
DOC-191 add correct variable [netlify-ignore]
1 parent cb57940 commit 87dd38c

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)