Skip to content

Commit 16423df

Browse files
committed
Make links with route_path
1 parent 2e0243f commit 16423df

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

warehouse/templates/search/results.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,21 @@ <h2 class="no-top-padding">Filter Projects</h2>
133133
<p>Enter a search query above, or select a filter from the list of classifiers on the left.</p>
134134
<p>You can combine searches and classifier filters. Examples:</p>
135135
<ul class="no-bottom-margin">
136-
<li><a href="/search/?q=&o=&c=Programming+Language+%3A%3A+Python+%3A%3A+3">New Python 3 project releases</a></li>
137-
<li><a href="/search/?q=&o=&c=Framework+%3A%3A+Sphinx+%3A%3A+Extension&c=Development+Status+%3A%3A+5+-+Production%2FStable">Sphinx extensions that are stable/production status</a></li>
138-
<li><a href="/search/?q=graphics&o=&c=License+%3A%3A+OSI+Approved">Graphics projects under OSI-approved licenses</a></li>
136+
<li>
137+
<a href="{{ request.route_path('search', _query=[('c', 'Programming Language :: Python :: 3')]) }}">
138+
New Python 3 project releases
139+
</a>
140+
</li>
141+
<li>
142+
<a href="{{ request.route_path('search', _query=[('c', 'Framework :: Sphinx :: Extension'), ('c', 'Development Status :: 5 - Production/Stable')]) }}">
143+
Sphinx extensions that are stable/production status
144+
</a>
145+
</li>
146+
<li>
147+
<a href="{{ request.route_path('search', _query=[('q', 'graphics'), ('c', 'License :: OSI Approved')]) }}">
148+
Graphics projects under OSI-approved licenses
149+
</a>
150+
</li>
139151
</ul>
140152
</div>
141153
{% endif %}

0 commit comments

Comments
 (0)