moodle delete last slash in wwwroot conf
This commit is contained in:
parent
30ed10d364
commit
f067732802
|
@ -20,6 +20,6 @@ class MoodleWWWRootController(ServiceController):
|
||||||
|
|
||||||
def get_context(self, content):
|
def get_context(self, content):
|
||||||
return {
|
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(),
|
'app_path': content.webapp.get_path(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue