Getting HTTP in canonical links and search links

Hello, Sarvesh here from Lambdatest. We are using self hosted discourse for our community and facing a really wierd problem of http in canonical and search links. We have done force_https: true and its not changing anything. Basically it appears to be a problems sometimes and some of the times it reflects as https too. Please find the image for the same.

Hoping to get a solution on this.

Regards
Sarvesh | Lambdatest

You are quite a few version behind! Can you please update to latest and check it again? After that try setting force_https in the rails console.

#ssh into the server
cd /var/discourse
./launcher enter app
rails c
SiteSettings.force_https = true
1 Like