- return render_to_response('catalogue/search_no_hits.html', {'query':prefix, 'tags':tag_list},
- context_instance=RequestContext(request))
+ return HttpResponseRedirect(reverse('catalogue.views.search_no_hits',
+ kwargs={'tags': '/'.join(tag.slug for tag in tag_list)}
+ ))
+
+
+def search_no_hits(request, tags):
+ try:
+ tag_list = models.Tag.get_tag_list(tags)
+ except:
+ tag_list = []
+
+ return render_to_response('catalogue/search_no_hits.html', {'tags':tag_list},
+ context_instance=RequestContext(request))
+