diff --git a/judgments/views/detail.py b/judgments/views/detail.py index 2df790095..4262bb405 100644 --- a/judgments/views/detail.py +++ b/judgments/views/detail.py @@ -85,7 +85,13 @@ def get_best_pdf(request, document_uri): f"Unexpected {response.status_code} error on {document_uri} whilst trying to get_best_pdf" ) # fall back to weasy_pdf - return redirect(reverse("weasy_pdf", kwargs={"document_uri": document_uri})) + + return redirect( + reverse( + "detail", + kwargs={"document_uri": document_uri, "file_format": "generated.pdf"}, + ) + ) def detail(request, document_uri):