Skip to content

Commit

Permalink
Merge pull request git#1887 from SegoCode/patch-1
Browse files Browse the repository at this point in the history
Fix: url with filters in gui client
  • Loading branch information
dscho authored Sep 27, 2024
2 parents 55ec5d0 + f00a03a commit 205db72
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ var Downloads = {
if (window.history && window.history.pushState) {
var url = os === ''
? `${baseURLPrefix}downloads/guis`
: `${baseURLPrefix}download/guis?os=${os}`;
: `${baseURLPrefix}downloads/guis?os=${os}`;
try {
history.pushState(null, $(this).html(), url);
} catch (e) {
Expand Down
2 changes: 2 additions & 0 deletions content/downloads/guis/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
url: /downloads/guis.html
aliases:
- /downloads/guis/index.html
- /download/guis/index.html
- /download/guis.html
---

<div id="main">
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<meta name="robots" content="noindex">
</head>
<body>
<script>window.location.replace(document.querySelector("link[rel='canonical']").href + window.location.hash)</script>
<script>window.location.replace(document.querySelector("link[rel='canonical']").href + window.location.search + window.location.hash)</script>
<h1>Redirecting&hellip;</h1>
<a href="{{ $redirect_to }}">Click here if you are not redirected.</a>
</body>
Expand Down
2 changes: 1 addition & 1 deletion layouts/alias.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="robots" content="noindex">
</head>
<body>
<script>window.location.replace(document.querySelector("link[rel='canonical']").href + window.location.hash)</script>
<script>window.location.replace(document.querySelector("link[rel='canonical']").href + window.location.search + window.location.hash)</script>
<h1>Redirecting&hellip;</h1>
<a href="{{ $redirect_to }}">Click here if you are not redirected.</a>
</body>
Expand Down

0 comments on commit 205db72

Please sign in to comment.