﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32710	static template tag converts '?' to '%3F'	Adrian Garcia	nobody	"As the title suggests, the static template tag converts all question marks to '%3F' which still seems to work, but I don't think this is intended.


Template code:
{{{
<script src=""{% static 'bootstrap/js/bootstrap.bundle.min.js?test'%}""></script>
}}}

Output is:
{{{
<script src=""/js/bootstrap.bundle.min.js%3Ftest""></script>
}}}


I followed the execution path and the replacement happens in {{{django.utils.encoding.filepath_to_uri}}} when {{{urllib.parse.quote}}} is called. I think '?' should be denoted as a safe character because otherwise, the function will replace it with a byte representation
"	Bug	new	Template system	3.1	Normal		static template		Unreviewed	1	0	0	0	1	0
