use location.protocol for base href

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-11-16 10:37:14 +01:00
parent 8602ebd4ec
commit 31bac1b3de
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">
document.write("<base href='http://" + document.location.host + "' />");
document.write("<base href='" + location.protocol + "//" + document.location.host + "' />");
</script>
<!-- Canonical links -->
<link rel="canonical" href="{{ url }}">