@@ -610,6 +610,12 @@ def index():
610 'title': suggestion
610 'title': suggestion
612 result_container.suggestions)
612 result_container.suggestions)
614+ correction_urls = list(map(lambda correction: {
615+ 'url': raw_text_query.changeSearchQuery(correction).getFullQuery(),
618+ result_container.corrections))
614 return render(
620 return render(
615 'results.html',
621 'results.html',
@@ -622,7 +628,7 @@ def index():
622 advanced_search=advanced_search,
628 advanced_search=advanced_search,
623 suggestions=suggestion_urls,
629 suggestions=suggestion_urls,
624 answers=result_container.answers,
630 answers=result_container.answers,
625− corrections=result_container.corrections,
631+ corrections=correction_urls,
626 infoboxes=result_container.infoboxes,
632 infoboxes=result_container.infoboxes,
627 paging=result_container.paging,
633 paging=result_container.paging,
628 unresponsive_engines=result_container.unresponsive_engines,
634 unresponsive_engines=result_container.unresponsive_engines,