https://api.drupal.org/api/drupal/core%21includes%21file.inc/function/fi...
Transforms an absolute URL of a local file to a relative URL.
May be useful to prevent problems on multisite set-ups and prevent mixed content errors when using HTTPS + HTTP.
Parameters string
$file_url: A file URL of a local file as generated byfile_create_url().Return value string If the file URL indeed pointed to a local file and was indeed absolute, then the transformed, relative URL to the local file. Otherwise: the original value of
$file_url.
Recent comments
Hi Francis I think most browsers have become more aggressive about caching images (and other files - I recently had a real pain getting Chrome to re-read the .htaccess file) locally. If...
Images on Pages and Blocks not refreshing
Well here I am 7 years later with the same problem which I have been living with all that time. I am using the Brave and Firefox Browsers to test this being a Linux User. I have gone over...
Images on Pages and Blocks not refreshing
OMG thank u... you are amazing.
Hiding Blocks for Small Screens