Skip to content

Commit

Permalink
Don't use request.raw_args
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored May 29, 2020
1 parent d2d0bc4 commit 809aee5
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 809aee5

Please sign in to comment.