Skip to content

Commit d95dd47

Browse files
committed
Escaping release and pagename for use in URL string.
1 parent 0f237b9 commit d95dd47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h1 class="logo">
8282
</ul>
8383
</nav><!-- end of .main-nav -->
8484
{%- if show_source and has_source and pagename %}
85-
{%- set issue_uri = issue_uri_template.format(pagename, release) %}
85+
{%- set issue_uri = issue_uri_template.format(pagename|urlencode, release|urlencode) %}
8686
{%- endif %}
8787
<a href="{{ issue_uri }}" target="_blank" class="v-btn" id="file-issue">
8888
<img src="_static/images/icon-link-github.svg" />

0 commit comments

Comments
 (0)