OJS 3.2; can't create new EMail Templates

Hello everyone :slightly_smiling_face:

in one of our OJS Journals (3.2.0-3) it is currently not possible to add new E-Mail templates our “Workflow”. The procedure seems to work fine and after submission of the form there is even an according notification popup. But the new Templates never show up in the list nor can they be found in the database.

I suspect that there is some sort of Issue with HTTP redirects and retaining the correct HTTP verb. Because when i look at the HTTP requests i see that there is one POST-Requests that results in a 301 redirect and after that there are only GET requests (see attached screenshot). I tried to somehow adjust our mod_rewrite rules (we use the “fancy url” feature of OJS) to somehow get rid of the redirect but did not manage.

ojs_email_redirect

The rewrite rules look like this (it’s a journal with its own domain and the only journal in the OJS Instance):

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(<journal_name>/?)?(.*)$ index.php/<journal_name>/$2 [QSA,L]   

The according lines in config.inc.php:

base_url = "https://[journal].[tld]"
base_url[ [journal_name] ] = "https://[journal].[tld]"

The presence/absence of the restful_urls=on parameter does not seem to make any difference in this setup.

If i disable the URL rewriting and the redirect rules, the Email-Template submission work

Does anyone have an idea on how to solve this?

Any comments are most appreciated!

1 Like

One little update:
I managed to fix this temporarily by disabling apaches habit of appending trailing slashes (mod_dir - Apache HTTP Server Version 2.2) for the /api routes. But this can probably not be a permanent solution