Skip to content

Commit 4b760a2

Browse files
committed
Make links protocol-relative
1 parent 01517f8 commit 4b760a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

assets/javascripts/templates/pages/offline_tmpl.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ app.templates.offlinePage = (docs) -> """
4141

4242
canICloseTheTab = ->
4343
if app.AppCache.isEnabled()
44-
""" Yes! Even offline, you can open a new tab, go to <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"x x-first x-last">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). """
44+
""" Yes! Even offline, you can open a new tab, go to <a href="proxy.php?url=https%3A%2F%2Fdevdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """
4545
else if app.mozApp
4646
""" 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). """
4747
else
48-
""" No. AppCache isn't available in your browser (or is disabled) so loading <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"x x-first x-last">http://devdocs.io">devdocs.io</a> offline won't work.<br>
48+
""" No. AppCache isn't available in your browser (or is disabled) so loading <a href="proxy.php?url=https%3A%2F%2Fdevdocs.io">devdocs.io</a> offline won't work.<br>
4949
The current tab will continue to work, though (provided you installed all the documentations you want to use beforehand). """
5050

5151
app.templates.offlineDoc = (doc, status) ->

public/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<h1>Oops!</h1>
6363
<p>
6464
<strong>The page you were looking for doesn't exist.</strong><br>
65-
Go back to <a href="http://devdocs.io">devdocs.io</a>.
65+
Go back to <a href="//devdocs.io">devdocs.io</a>.
6666
</p>
6767
</div>
6868
</body>

public/500.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h1>Oops!</h1>
6363
<p>
6464
<strong>Something is technically wrong.</strong><br>
6565
Thanks for noticing&mdash;we're going to fix it up and have things back to normal soon.<br>
66-
Go back to <a href="http://devdocs.io">devdocs.io</a>.
66+
Go back to <a href="//devdocs.io">devdocs.io</a>.
6767
</p>
6868
</div>
6969
</body>

0 commit comments

Comments
 (0)