From 7426cf752459f24afce78cb439e2aea440ec0583 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 20 Jun 2018 16:31:36 +0200 Subject: [PATCH] Make flat messageview redirect to md5 of messageid Redirecting to the full messageid pollutes the URL pretty badly. md5 is not the best of hashes, but the likelihood of getting an md5 collission on the messageid *within a single thread* is extremely low -- and of course if it happens the only effect is on the initial scroll of the window. --- django/archives/mailarchives/templates/message_flat.html | 4 +++- django/archives/mailarchives/templatetags/pgfilters.py | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/django/archives/mailarchives/templates/message_flat.html b/django/archives/mailarchives/templates/message_flat.html index c72496f..fd3c530 100644 --- a/django/archives/mailarchives/templates/message_flat.html +++ b/django/archives/mailarchives/templates/message_flat.html @@ -1,4 +1,5 @@ {%extends "page.html"%} +{%load pgfilters%} {%block title%}{%if not msg.hiddenstatus%}{{msg.subject}}{%endif%}{%endblock%} {%load pgfilters%} {%block extrahead%} @@ -7,7 +8,7 @@