Skip to content

Commit b27f234

Browse files
committed
Fix URL escaping in packages template
Add Tera safe filter to repo_url and gpg_key_url outputs to prevent HTML entity encoding of forward slashes in generated URLs. Signed-off-by: Evgeniy Patlan <evgeniy.patlan@percona.com>
1 parent b3a7325 commit b27f234

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/packages.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ <h2>Install Valkey <span class="pkg-ver-name"></span> on <span class="pkg-os-nam
233233
<div class="pkg-gpg-section">
234234
<h2>GPG Key</h2>
235235
<p>All packages are signed with our GPG key. Download the public key:
236-
<a href="{{ page.extra.gpg_key_url }}">GPG-KEY-valkey.asc</a></p>
236+
<a href="{{ page.extra.gpg_key_url | safe }}">GPG-KEY-valkey.asc</a></p>
237237
</div>
238238

239239
<script>
240-
var REPO_URL = "{{ page.extra.repo_url }}";
240+
var REPO_URL = "{{ page.extra.repo_url | safe }}";
241241

242242
function showInstructions() {
243243
var osSel = document.getElementById("os-select");

0 commit comments

Comments
 (0)