changeset 4c60a94b39ae in modules/marketing_automation:5.6
details:
https://hg.tryton.org/modules/marketing_automation?cmd=changeset;node=4c60a94b39ae
description:
Match unsubscribe route path with generated URL
The URL generated is using '/' to separate database name from the
unsubscribe
command but the route is using '$'.
For backward compatibility with email already sent, we use '/' in the
route.
issue9886
review314921002
(grafted from d6b1349e7870ea947c6f0f289e0438cbf2e5d33c)
diffstat:
routes.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r cc2c0812f775 -r 4c60a94b39ae routes.py
--- a/routes.py Fri Nov 27 22:41:03 2020 +0100
+++ b/routes.py Fri Dec 04 18:42:54 2020 +0100
@@ -9,7 +9,7 @@
from trytond.wsgi import app
[email protected]('/m/<base64:database_name>$unsubscribe')
[email protected]('/m/<base64:database_name>/unsubscribe')
@with_pool
@with_transaction(readonly=False)
def unsubscribe(request, pool):