Skip to content

Commit

Permalink
Merge pull request #2 from simonw/patch-2
Browse files Browse the repository at this point in the history
Use request.args instead of request.raw_args
  • Loading branch information
ashishdotme authored Aug 21, 2020
2 parents e27818f + 9ffcd4a commit acef700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/template_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

@hookimpl
def extra_template_vars(request):
return {"q": request.raw_args.get("q") or ""}
return {"q": request.args.get("q", "")}

0 comments on commit acef700

Please sign in to comment.