All image URLs are missing the protocol

Your software
My Mautic version is: 5.2.8
My PHP version is: 8.3.26
My Database type and version is: MySQL 8.4.7

Your problem
My problem is:

All image URLs in the email builder are missing the protocol from the Site URL in the configuration.

This is also affecting the avatar image, which is prefixing the hostname of the container to the ?d= parameter, since UrlHelper::rel2abs thinks the avatar path is relative (since it’s missing the protocol).

I also can’t save in GrapeJS.

These errors are showing in the log:

None.

Steps I have tried to fix the problem:

  • Resaved the config.
  • Cleared the cache.
  • Rebuilt assets.
1 Like

Update:

The save button in the email editor also has the title “grapesjsbuilder.panelsViewsButtonsApplyTitleError”.

I can find the string grapesjsbuilder.panelsViewsButtonsApplyTitle in the codebase, so it probably relates to this somehow.

1 Like

Hello @mreh !

I think I already experienced this issue before…

Is Mautic running behind a Proxy with HTTPS?

Yes, the proxy is terminating TLS and forwarding everything to Mautic.

@cibero42 ^