-
Abhilash Raj authored
This adds support to include the Web URLs in the default email templates provided by Mailman. Since Postorius is an optional peice in Mailman 3, we haven't had support for Web URLs so far. The changes in this PR include: 1. Additional field on domain, web_host, which will typically be the public facing URL for Postorius, including the prefix. A typical value for it would be something like: ``https://lists.example.com/mailman3`` 2. A new configuration section, ``urlpatterns``, which has the various patterns to generate URLs based on Postorius's default URL patterns using parameters like ``list_id``, ``domain``, ``base_url`` (web_host). * Update documentation * Remove extra substitutions * Update docs and add NEWS * Add URL validator and some more tests. * Fix qa * Add tests for web_url utility method * Doctest fixes * qa fixes * Rename web_host with base_url * Fix doctests * Update doctests * Remove some old changes * Remove jinja2 * feat: Add support for Web URLs in templates. This adds support to include the Web URLs in the default email templates provided by Mailman. Since Postorius is an optional peice in Mailman 3, we haven't had support for Web URLs so far. The changes in this PR include: 1. Additional field on domain, web_host, which will typically be the public facing URL for Postorius, including the prefix. A typical value for it would be something like: ``https://lists.example.com/mailman3`` 2. A new configuration section, ``urlpatterns``, which has the various patterns to generate URLs based on Postorius's default URL patterns using parameters like ``list_id``, ``domain``, ``base_url`` (web_host). * Intermediate commit * Initial work on the urlpatterns
a80f6d32