Protocolless urls?

Created on 9 July 2014, over 10 years ago
Updated 20 September 2023, about 1 year ago

We're running into a problem with Picture, specifically with responsive images added to text fields via ckeditor: namely, all of the links generated for the different image styles are using the https:// protocol. I assume this is happening because we require content editors to log in via https, and the text filter is (if I understand correctly) generating the code while an https connection is active, but that's just a guess.

Regardless, because we use a self-signed cert (since only content editors need to log in to the site), this creates problems for anonymous visitors. They hit the site via http, images then try to load using the generated https links, the browser refuses to load the images because of the self-signed cert.

Would it be possible (and is it a good idea) for Picture to generate protocolless links, like:

<source srcset="//foo.mo.gov/sites/default/files/styles/resp_breakpoints_theme_foo_site_wide_1x/public/bar.jpg?itok=usL9GMGk 1x" media="all and (min-width: 1220px)">

...instead of:

<source srcset="https://foo.mo.gov/sites/default/files/styles/resp_breakpoints_theme_foo_site_wide_1x/public/bar.jpg?itok=usL9GMGk 1x" media="all and (min-width: 1220px)">

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States wrd

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom lesleyfernandes

    I am closing all very old tickets that have not received comments for a long time. If someone still faces these issues or thinks they are relevant, please reopen it. Feel free to contribute with more info or a patch.

Production build 0.71.5 2024