Sites not redirecting to https when using auto login

What issue or error are you experiencing?

When I install a site or try accessing a new site, if I have added SSL to it and I click the “WP Admin” or “Open Site” button, the browser tries to open in “http” instead of “https” and it never redirects to “https”. But when I manually type in “https” it works. The “https” never works if I try using the buttons from the Local Desktop app. I have tried restarting the app multiple times, thinking it has not recognized the certificate yet but it’s still the same. I also tried setting the WordPress Address and Site Address from the WordPress dashboard and from the database directly but it still tries to use “http” every time I click the “WP Admin” or “Open Site” in the desktop app, and it doesn’t redirect to “https” unless I manually type it in the browser.

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

  1. Install a new Local site
  2. Add the SSL to the site and click the Trust button to activate it
  3. Click the “WP Admin” or “Open Site” button
  4. Your browser will attempt to open the site in “http” instead of “https”, causing it to display an error page. Below is a typical screenshot of the error page:

System Details

  • Local Version:
    Version 8.3.1+6650

  • Operating System (OS) and OS version:
    Ubuntu 22.04 LTS

Local Logs

local-lightning-verbose.log (372.1 KB)

Hi @upperloftctns

Have you looked through our guide here?

Does this behavior persist if you check it in a different browser? Or with a different network connection?

Hi @Nick-B

I actually tried the article you recommended but it didn’t help. However I noticed that on Chrome it shows the error page, then it tries to redirect with a path /wp-admin/user/ then after a few seconds it redirects to the dashboard.

But on Edge, Firefox, Opera, it doesn’t work at all. This issue actually started with some updates to Local but I can’t tell specifically which version of Local that introduced the problem.

Could you share your full Local Log with us here? There are some different ways to access and share Local Logs. For us to be able to troubleshoot thoroughly, please click the Download Local Logs button from the Support tab in Local. This will generate a zip archive that contains the Local log along with some other diagnostic information to help quickly zero in on any issues that Local is encountering.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.