Serve web app manifest from canonical origin

pull/666/merge
Thibaut Courouble 7 years ago
parent 8225e1d7e6
commit 8ddc08ca9b

@ -17,7 +17,7 @@
<meta name="robots" content="noodp">
<title>DevDocs API Documentation</title>
<link rel="canonical" href="<%= canonical_origin %>">
<link rel="manifest" href="<%= App.cdn_origin %>/manifest.json">
<link rel="manifest" href="/manifest.json">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="DevDocs Search">
<link rel="alternate" href="<%= canonical_origin %>/feed" title="DevDocs" type="application/atom+xml">
<link rel="icon" type="image/x-icon" href="<%= App.cdn_origin %>/favicon.ico">

@ -8,7 +8,7 @@
<meta property="og:image" content="<%= App.cdn_origin %>/images/icon-128.png">
<title>DevDocs<%= " &mdash; #{@doc['full_name']} documentation (fast, offline)" if doc_index_page? %></title>
<link rel="canonical" href="<%= canonical_origin %><%= request.path %>">
<link rel="manifest" href="<%= App.cdn_origin %>/manifest.json">
<link rel="manifest" href="/manifest.json">
<link rel="icon" type="image/x-icon" href="<%= App.cdn_origin %>/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">
<link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">

Loading…
Cancel
Save