From f0677328020cd433bd15bd49275a6228635ec76c Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Sat, 9 Dec 2023 11:43:45 +0100 Subject: [PATCH] moodle delete last slash in wwwroot conf --- orchestra/contrib/websites/backends/moodle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/contrib/websites/backends/moodle.py b/orchestra/contrib/websites/backends/moodle.py index b44ec5e0..5bdaddf1 100644 --- a/orchestra/contrib/websites/backends/moodle.py +++ b/orchestra/contrib/websites/backends/moodle.py @@ -20,6 +20,6 @@ class MoodleWWWRootController(ServiceController): def get_context(self, content): return { - 'url': content.get_absolute_url(), + 'url': content.get_absolute_url()[:-1] if content.get_absolute_url()[-1] == '/' else content.get_absolute_url(), 'app_path': content.webapp.get_path(), }