• Resolved joels341

    (@joels341)


    Hi Hummingbird,

    I noticed that when assets are compressed, relative paths are replaced with absolute paths to my site (for example, images used in css files).

    However, sometimes Hummingbird uses “http” instead of “https” for some of these assets. It seems to happen randomly and each time with different assets.

    Everything else in WordPress is set to use https.

    Where in the code do the relative paths get switched out? I would like to put some code in to make sure this never happens and force https so my clients don’t see mixed content warnings on their site.

    Best,
    Joel

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @joels341

    I hope you’re doing well!

    I’ve forwarded your question to our developers. Once there will be ab update we will follow back in here.

    Have a good day and take care!

    Cheers,
    Nastia

    Hello @joels341

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

    Hello!

    This is not solved. I am having the same issue. But in my case, relative paths are replaced with absolute ones with “https”, but my site is not accessed via https….

    This leads to errors in Chome

    Here’s some screenshots to get a better understanding:

    https://drive.google.com/file/d/1OrcpLFXHWcU0P5H8QiYxlMUyN-PqcwxH/view?usp=sharing

    Thread Starter joels341

    (@joels341)

    Chipro, your fontawesome looks like it is using https, but you may have to check where foobox font is being loaded.

    I temporarily fixed my issues by removing the “..” from the css files and replacing it with the full website URL with https. If you do this, hummingbird won’t have to guess what to replace the “..” with. However, this could break when updating themes and plugins.

    Hummingbird should still fix this though. I cannot find where in the code it does this replacement, so I can’t troubleshoot any further.

    My entire site is accessed via http, not https. However, hummingbird adds https to the relative paths in the css files, when it parses them and replaces relative with absolute. I think this is a bug. I also fixed it manually, but a next update would lead, again to errors.

    Hello @chipro and @joels341

    @joels341 Is there a staging site with this issue that you could share a link to us so we could have a closer look? The Hummingbird should not use HTTP protocol in these cases.
    Please let us know which plugin/theme you’re using where a protocol is being replaced?

    @chipro Thank you for posting in this thread, however, per www.ads-software.com forum regulations please open your own thread:

    Frequently Asked Questions

    Kind regards,
    Nastia

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘relative paths in css replaced with http’ is closed to new replies.