From f48f9b00e9615d5da75a0733cb5f4c0fc4379307 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 2 Mar 2022 21:45:58 +0100 Subject: [PATCH] Build an absolute URL for abuse reports --- photologue/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/photologue/views.py b/photologue/views.py index 0b245ec..826f747 100644 --- a/photologue/views.py +++ b/photologue/views.py @@ -87,6 +87,7 @@ class PhotoReportView(LoginRequiredMixin, DetailView): if not gallery_slug: url = reverse_lazy("photologue:pl-gallery-archive") url = reverse_lazy("photologue:pl-gallery", args=[gallery_slug]) + url = request.build_absolute_uri(url) # Send mail to managers mail_managers(