Alias of HTML File Does Not Display Assets from Relative Links

Alias of HTML File Does Not Display Assets from Relative Links

by Jeff Swab -
Number of replies: 0

Is there "trick" for getting an alias to an HTML file to display embedded assets (images, CSS, etc.) through relative links?

We need the alias to a mini-website HTML page in one course to display the assets in subfolders for that HTML page in another course. The HTML page in the source course with the mini-website displays fine; assets like CSS and images in subfolders do display correctly. When I'm in a different course and create an alias to that HTML page, the HTML will layout the page, but none of the assets in the subfolders display; no CSS or images.

This problem occurs in both our production server with Moodle 2.9.2 through our vendor (I *think* they're using nginx/1.4.6 [Ubuntu]) and in my test environment running Moodle 3.1.2 in XAMPP 5.6 portable for Windows (with Apache) on a thumb drive.

I don't have access to our production server (Moodle 2.9.2), but I can do what I need to do in my test environment on my thumb drive (Moodle 3.1.2). Slasharguments is enabled in both Moodles.

In my 3.1 test site, I edited php.ini and httpd.conf as described on the Moodle Docs site: https://docs.moodle.org/31/en/Apache#Slasharguments, but I'm pretty sure that it wasn't necessary to do that. It's still not displaying the mini-website subfolder assets in the alias.

The Moodle forums and tracker sites have posts about getting mini-websites (and SCORM packages) to work with slasharguments, but there doesn't appear to be anything about aliases to HTML files not displaying linked files.

Any advice? Thanks for your help!

Average of ratings: -