Want to be able to input relative URLs

Want to be able to input relative URLs

by James Snell -
Number of replies: 0

I would VERY much appreciate knowing where the logic for converting URL input strings like, "/static/myfile.pdf" in to "http[s]://[web root]/static/myfile.pdf" is located? Is this in the WYSIWYG? How do I disable this feature?

I actually find this behavior quite counter-intuitive. I find relative URLs (that begin by referencing the root of the website) to be extremely flexible. Yet I see various parts of Moodle beyond just user input where resources are referenced absolutely. This adds complexity for things like running a site entirely over ssl. Granted at least that part is fairly well managed in the config file anyway. It also can be frustrating for doing things like copying around moodle instances and running them under different domain names.

I'm keen to take a look at possibly taking a look at how this is done in Moodle and submitting patch proposals - but first I could really use help in finding out if I'm missing some setting for this somewhere?

Thanks for the help! Cheers friends!

Average of ratings: -