Browse Source

Make links protocol-relative

Thibaut Courouble 9 years ago
parent
commit
4b760a24d3
3 changed files with 4 additions and 4 deletions
  1. 2 2
      assets/javascripts/templates/pages/offline_tmpl.coffee
  2. 1 1
      public/404.html
  3. 1 1
      public/500.html

+ 2 - 2
assets/javascripts/templates/pages/offline_tmpl.coffee

@@ -41,11 +41,11 @@ app.templates.offlinePage = (docs) -> """
 
 canICloseTheTab = ->
   if app.AppCache.isEnabled()
-    """ Yes! Even offline, you can open a new tab, go to <a href="http://devdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """
+    """ Yes! Even offline, you can open a new tab, go to <a href="//devdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """
   else if app.mozApp
     """ Yes! Even offline, you can open the app and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """
   else
-    """ No. AppCache isn't available in your browser (or is disabled) so loading <a href="http://devdocs.io">devdocs.io</a> offline won't work.<br>
+    """ No. AppCache isn't available in your browser (or is disabled) so loading <a href="//devdocs.io">devdocs.io</a> offline won't work.<br>
         The current tab will continue to work, though (provided you installed all the documentations you want to use beforehand). """
 
 app.templates.offlineDoc = (doc, status) ->

+ 1 - 1
public/404.html

@@ -62,7 +62,7 @@
     <h1>Oops!</h1>
     <p>
       <strong>The page you were looking for doesn't exist.</strong><br>
-      Go back to <a href="http://devdocs.io">devdocs.io</a>.
+      Go back to <a href="//devdocs.io">devdocs.io</a>.
     </p>
   </div>
 </body>

+ 1 - 1
public/500.html

@@ -63,7 +63,7 @@
     <p>
       <strong>Something is technically wrong.</strong><br>
       Thanks for noticing&mdash;we're going to fix it up and have things back to normal soon.<br>
-      Go back to <a href="http://devdocs.io">devdocs.io</a>.
+      Go back to <a href="//devdocs.io">devdocs.io</a>.
     </p>
   </div>
 </body>