Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not a bug
-
Affects Version/s: 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.8, 1.8.1, 1.8.2, 1.8.3
-
Fix Version/s: None
-
Labels:None
-
Environment:ALL
-
Affected Branches:MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE
Description
Moodle has a problem with references within fields like summary, description, ... which affect resources, questions, ....
This problem is transversal to a lot of things and the result is that links get url/site dependent, thus making import, backup and restore, site moving not straight forward.
One way to solve this might be using special keywords (e.g. __COURSE_FILES) and build a filter that would replace them on-the-fly.
So instead of:
<a href="http://your.site.com/course/file.php/234/mydir/myfile.pdf">myfile.pdf</a>
would be, something like:
<a href="__COURSE_FILES/mydir/myfile.pdf">myfile.pdf</a>
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
This was discussed many, many times before - we are using absolute URLs for course files and this is not going to change.
In 2.0 we may introduce "activity files" and store relative links internally, but it needs major changes in html editor, file.php, file storing and handling and many other areas...