fix for URLs that start with "COURSE"
This commit is contained in:
parent
51beefd60f
commit
5d735de237
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ def _real_url_helper(context, url):
|
|||
elif url.startswith("COURSE"):
|
||||
new = [str(context["cs_course"])]
|
||||
floc = content_file_location(context, new + end)
|
||||
new = new if sole_course is None and new[0] == sole_course else []
|
||||
new = new if sole_course is None or new[0] == sole_course else []
|
||||
if floc is not None and os.path.isfile(floc):
|
||||
pre = u2 + new
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue