From 10d96c7c8fba9486afae219190b66efb8061b2ae Mon Sep 17 00:00:00 2001 From: reverend Date: Wed, 12 Aug 2020 18:56:09 +0200 Subject: [PATCH] Using referrer in 403 --- lostplaces/templates/403.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lostplaces/templates/403.html b/lostplaces/templates/403.html index 6b0bd7d..29954f0 100644 --- a/lostplaces/templates/403.html +++ b/lostplaces/templates/403.html @@ -1,2 +1,9 @@ {% extends 'global.html'%} + {% block title %}Forbidden{% endblock %} + +{% block maincontent %} +{% if request.META.HTTP_REFERER %} +

Go Back

+{% endif %} +{% endblock maincontent %} \ No newline at end of file