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"> <section class="component download pb-0">
<div class="container h-100"> <div class="container h-100">
<picture class="download-mobile-image d-block d-lg-none"> <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> </picture>
<div class="row align-items-end align-items-lg-center justify-content-lg-between h-100"> <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"> <div class="col col-12 col-lg-6 bg-white p-3">
@ -31,13 +31,13 @@
</div> </div>
</div> </div>
<div class="col col-12 col-sm-12 col-md-12 col-lg-5 d-none d-lg-block"> <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> </div>
</div> </div>
</section> </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> <script>
const Platforms = { "Android": "Android", "iOS": "iOS", "Unsupported": "Unsupported" }; const Platforms = { "Android": "Android", "iOS": "iOS", "Unsupported": "Unsupported" };
@ -79,8 +79,8 @@
let directUrl; let directUrl;
let alternativeUrl; let alternativeUrl;
if (originalQuery) { if (originalQuery) {
directUrl = "{{ site.BaseURL }}" + originalQuery; directUrl = "{{ site.BaseURL }}/" + originalQuery;
alternativeUrl = "{{ site.Params.alternativeUrl }}" + originalQuery; alternativeUrl = "{{ site.Params.alternativeUrl }}/" + originalQuery;
} }
window.history.replaceState({}, document.title, window.location.protocol + "//" + window.location.host + "/" + (originalQuery ? originalQuery:"")); window.history.replaceState({}, document.title, window.location.protocol + "//" + window.location.host + "/" + (originalQuery ? originalQuery:""));