Views Slideshow Using Absolute Path to Images We are using views_slideshow to display a 3 image slideshow on our homepage.  The Style is Slideshow, the Row Style is set to Fields.  The Field is: Image attach: Attached images and we are filtering for a specific Node:Type.  The Node Type were filtering for has an attached image which is what the slideshow uses.

The problem we are encountering is that the &lt;img src=""/&gt; references to the image appear to be absolute URLs so that if you view the site over https:// in Internet Explorer, you get the message about referencing unsecure content on a secure page. (since the URL to the image looks like: http://www.foo.com/sites/dailyaccess.com/files/images/Banner1.jpg even though you are viewing the page over https://)

How can we go about correcting this to use a relative URL or display the correct secure/unsecure URL?
Implement hook_preprocess_views_view_field() or hook_preprocess_views_view_fields(). In those you should be able to alter anything related to that image field. If the image field happens to be represented as a render array in the hook (assuming you are using Drupal 7), you can also change the theming function to use for that image. Within your own image theming function, you can get the path to the image using file_create_url(), which supports https.

If you need a good example of an image theming function, you can look at core's theme_image(). For a complete list of Views preprocessors, you can look at the views/theme/theme.inc source code.