forked from tangled.org/core
this repo has no description

appview: repo/index: urlencode refs

anirudh.fi d187bf2b b6f0dceb

verified
Changed files
+3 -3
appview
pages
templates
repo
+3 -3
appview/pages/templates/repo/index.html
···
</optgroup>
</select>
<a
-
href="/{{ .RepoInfo.FullName }}/commits/{{ .Ref }}"
+
href="/{{ .RepoInfo.FullName }}/commits/{{ .Ref | urlquery }}"
class="ml-2 no-underline flex items-center gap-2 text-sm uppercase font-bold"
>
<i class="w-4 h-4" data-lucide="logs"></i>
···
<div class="{{ $containerstyle }}">
<div class="flex justify-between items-center">
<a
-
href="/{{ $.RepoInfo.FullName }}/tree/{{ $.Ref }}/{{ .Name }}"
+
href="/{{ $.RepoInfo.FullName }}/tree/{{ $.Ref | urlquery }}/{{ .Name }}"
class="{{ $linkstyle }}"
>
<div class="flex items-center gap-2">
···
<div class="{{ $containerstyle }}">
<div class="flex justify-between items-center">
<a
-
href="/{{ $.RepoInfo.FullName }}/blob/{{ $.Ref }}/{{ .Name }}"
+
href="/{{ $.RepoInfo.FullName }}/blob/{{ $.Ref | urlquery }}/{{ .Name }}"
class="{{ $linkstyle }}"
>
<div class="flex items-center gap-2">