Skip to content

Commit 084d572

Browse files
committed
Add canonical link to all pages
1 parent 744d7ca commit 084d572

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

views/other.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta name="format-detection" content="telephone=no">
88
<meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">
99
<title>DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %></title>
10+
<link rel="canonical" href="http://devdocs.io<%= request.path %>">
1011
<link rel="icon" type="image/x-icon" href="//cdn.devdocs.io/favicon.ico">
1112
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">
1213
<link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">

0 commit comments

Comments
 (0)