Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix the badge links in the search results #145

Merged
merged 1 commit into from

2 participants

@lmacken
Owner

:construction: Untested :warning:

@oddshocks
Owner

Tested, looks good :)

@oddshocks oddshocks merged commit ce43ccc into from
@oddshocks oddshocks deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 10, 2013
  1. @lmacken
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  tahrir/views.py
View
3  tahrir/views.py
@@ -364,8 +364,7 @@ def explore(request):
badge_query
+ '%')).all()
for r in matching_results:
- search_results[r.name] = request.route_url('badge',
- id=r.name.lower().replace(' ', '-'))
+ search_results[r.name] = request.route_url('badge', id=r.id)
elif request.POST.get('person-search'):
# person-query is a required field on the template form.
person_query = request.POST.get('person-query')
Something went wrong with that request. Please try again.