Fix: baseURL slash

This commit is contained in:
Dorian Zedler 2022-08-06 21:19:03 +02:00
parent 56bb0cfe0d
commit 13a2e43028
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -3,7 +3,7 @@
<section class="component download pb-0">
<div class="container h-100">
<picture class="download-mobile-image d-block d-lg-none">
<img class="download-mobile-image" src="{{site.BaseURL}}assets/img/favicon.png" title="{{site.Params.appName}} App" alt="{{site.Params.appName}}-App Smartphone" loading="lazy" />
<img class="download-mobile-image" src="{{site.BaseURL}}/assets/img/favicon.png" title="{{site.Params.appName}} App" alt="{{site.Params.appName}}-App Smartphone" loading="lazy" />
</picture>
<div class="row align-items-end align-items-lg-center justify-content-lg-between h-100">
<div class="col col-12 col-lg-6 bg-white p-3">
@ -31,13 +31,13 @@
</div>
</div>
<div class="col col-12 col-sm-12 col-md-12 col-lg-5 d-none d-lg-block">
<img class="section-main-image" src="{{site.BaseURL}}assets/img/favicon.png" title="{{site.Params.appName}} App" alt="{{site.Params.appName}}-App Smartphone" loading="lazy" />
<img class="section-main-image" src="{{site.BaseURL}}/assets/img/favicon.png" title="{{site.Params.appName}} App" alt="{{site.Params.appName}}-App Smartphone" loading="lazy" />
</div>
</div>
</div>
</section>
<script src="{{site.BaseURL}}assets/js/static/ua-parser.pack.js"></script>
<script src="{{site.BaseURL}}/assets/js/static/ua-parser.pack.js"></script>
<script>
const Platforms = { "Android": "Android", "iOS": "iOS", "Unsupported": "Unsupported" };
@ -79,8 +79,8 @@
let directUrl;
let alternativeUrl;
if (originalQuery) {
directUrl = "{{ site.BaseURL }}" + originalQuery;
alternativeUrl = "{{ site.Params.alternativeUrl }}" + originalQuery;
directUrl = "{{ site.BaseURL }}/" + originalQuery;
alternativeUrl = "{{ site.Params.alternativeUrl }}/" + originalQuery;
}
window.history.replaceState({}, document.title, window.location.protocol + "//" + window.location.host + "/" + (originalQuery ? originalQuery:""));