fix: cockpit url double slash

This commit is contained in:
Reto Aebersold 2024-01-22 10:27:23 +01:00 committed by Christian Cueni
parent becbbd01ca
commit 4af56f721b
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class Course(models.Model):
return f"/course/{self.slug}"
def get_cockpit_url(self):
return f"/{self.get_course_url()}/cockpit"
return f"{self.get_course_url()}/cockpit"
def get_learning_path(self):
from vbv_lernwelt.learnpath.models import LearningPath