Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Hide HTML comment from the user

Pacu2fe88d842b79f
diff --git a/templates/category/index.html b/templates/category/index.html
index 1ed867a033..4c4882691d 100644
--- a/templates/category/index.html
+++ b/templates/category/index.html
@@ -123,8 +123,12 @@
<form method="get">
{% for field in filter.form %}
{% if field.name == 'sort_by' %}
- <!--Field 'sort_by' is hidden because it is rendered in header.
- This is required if you want to have sorting to be kept during further filtering.-->
+
+ {% comment %}
+ Field 'sort_by' is hidden because it is rendered in header.
+ This is required if you want to have sorting to be kept during further filtering.
+ {% endcomment %}
+
<input type="hidden" name="sort_by"
value="{% if request.GET.sort_by %}{{ request.GET.sort_by }}{% endif %}">
{% elif field.name != 'price' %}