I have a number of courses that make extensive use of Legacy Files due to the relative pathing used in the HTML content. We use a URL resource to link the student to the root of the sections within the HTML which is working great.
The problem is when I backup the course from my dev server and restore it to my production server. The URL on my dev server looks something like this, /file.php/15/index.html
When I restore a package it keeps that URL the same even though the repository number it's restoring into is different. Therefore all of the URLs break and I have to go in and fix them all by hand.
So the question is this, is there a way I can use a dynamic variable in the URL that will always render to the current repository's number? I'd love to set my URLs to something like this: /file.php/@@REPO@@/index.html
Does such a feature exist? If not, does anyone have a suggestion as to how I can preserve links to legacy content in the backup?