def METHOD_NAME(self, request, project_slug):
    query = request.GET.METHOD_NAME("q", "")
    url = (
        reverse("search")
        + "?"
        + urlencode({"q": f"project:{project_slug} {query}"})
    )
    return HttpResponseRedirect(url)