I've started using HTML5 output from MadCap Flare. To use this in my courses I do the following:
- Create a zip file of the output HTML5 folder.
- Upload this as a file resource to my course.
- In the resource settings, unzip the file.
- Set default.htm as the default file.
- Set Appearance to "Open".
And that works great. I can pull URLs from within the package to link to directly and all works as I would hope.
Until I need to update the resource. No biggie, just repeat the steps above, selecting overwrite when uploading the new zip. However, the URLs for all the pages change! The first unzip creates the URLs as
"mymoodle/pluginfile.php/18282/mod_resource/content/1/" The second unzip yields
"mymoodle/pluginfile.php/18282/mod_resource/content/2/"
"mymoodle/pluginfile.php/18282/mod_resource/content/1/" The second unzip yields
"mymoodle/pluginfile.php/18282/mod_resource/content/2/"
And it keeps increasing that number. That means I have to update all my links every time I update resource. That's a mess. Worse still, the old versions seem to be archived/cached somewhere, so if I don't update all my links, they point to outdated material.
Is there any way to stop this? It also happens for file resources that are a single file when you upload a new version. There it is somewhat okay as I can link to the file resource, but with these HTML5 folders, I can't point directly to the file and get my nice skin layout.
I'm using Moodle 3.9.12.
Thanks,
Aaron