I’m not using that plugin, any reason why my topic name was edited @codinghorror ??
I need @techapj to weigh and and see if he can duplicate this or not, first.
My initial topic (.ico in one box breaks https) was solved, I had to add ico to extensions so discourse could download them.
This new topic name should have its own topic not sure why @pfaffman edited the first time, maybe revert and split @ post 12?
This issue is not due to the TLP plugin (the topic title needs updating).
For example, you can see it currently on @adorfer’s site here, even though TLP is disabled.
Also, I’ve added the offending links on @adorfer’s site (German newspaper websites need to migrate to https ) to my sandbox and the .ico download behaviour (and https) works normally. See further here: https://discourse.angusmcleod.com.au/c/tlp
The reason you were seeing some difference between safe mode and normal mode on that site is because TLP just replicates the existing issue with the .ico images in the topic list (in addition to the individual topics in which the issue occurs).
For anyone else who has an issue with favicon’s in oneboxes breaking https, there are five site settings that will affect whether a remote image is downloaded to Discourse, including favicon (.ico
) images. You need to check all of them:
-
download remote images to local
-
download remote images threshold
-
download remote images max days old
-
disabled image download domains
-
authorized extensions
You need to rebake (‘rebuild html’) any post with an offending image to re-trigger the job that pulls hotlinked images once you’ve updated any of these settings.
After you’ve rebuilt the html, the job will run after however many seconds you’ve set as the editing grace period
in your site settings (Default is 300 seconds, i.e. 5 mins).
You can see the progress of the job at yoursite.com/sidekiq
, it’s called “PullHotlinkedImages” e.g.
Only once all of the above settings are set appropriately and this job has fully completed should you expect to see Discourse serving a local version of the hotlinked image, and any associated https issues resolve.
The original issue reported by @Vaping_Community was due to favicons in onebox using http
links, and @Falco provided a solution to fix it.
@adorfer was not able to fix this issue by using Rafael’s solution, and the site was working fine in safe mode so assumed that “Topic List Previews” plugin was the culprit. But as explained by @angus in detail above, there are few more settings that needs to be changed in order to download all onebox images locally.
So this issue happens only when Onebox tries to load unsafe (non https
) images, and can be fixed by downloading images locally by modifying settings as specifed by Angus above.