Issue Details (XML | Word | Printable)

Key: MDL-12507
Type: Bug Bug
Status: Resolved Resolved
Resolution: Not a bug
Priority: Major Major
Assignee: Petr Škoda (skodak)
Reporter: Paulo Matos
Votes: 1
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

References to course files are url/site dependent

Created: 09/Dec/07 01:05 AM   Updated: 18/Dec/07 05:26 AM
Component/s: Backup, Course, Filters, HTML Editor, Lib, Other, Questions, Resource
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

Environment: ALL

Participants: Paulo Matos and Petr Škoda (skodak)
Security Level: None
Resolved date: 18/Dec/07
Affected Branches: MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE


 Description  « Hide
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>



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Škoda (skodak) added a comment - 18/Dec/07 05:26 AM
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...