Просмотр исходного кода

Serve web app manifest from canonical origin

Thibaut Courouble 8 лет назад
Родитель
Сommit
8ddc08ca9b
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      views/index.erb
  2. 1 1
      views/other.erb

+ 1 - 1
views/index.erb

@@ -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">

+ 1 - 1
views/other.erb

@@ -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 %>">