• Before turning this to plugin, here’s our setup for MultiSite:

    FORCE_SSL_LOGIN is defined to TRUE in wp-config, so that the dashboard is always served over HTTPS.

    As soon as I network activate the plugin in the Network Dashboard, the CSS all breaks, because it’s now trying to load it over HTTP instead of HTTPS. Once I go in and either a) activate SSL on the root site, or b) active SSL network wide, the CSS is delivered over HTTPS again and the dashboard returns to normal. However, it’s probably pretty jarring to people to have to go through these steps.

    Let me know if this gives you enough info to address this or if you need more.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Hi @madtownlems,

    Thanks for the input, and for your detailed info.

    By default, WordPress will show any sitelink in multisite as https if the current site is https. If you have a multisite network with some http sites, this is annoying. This will also happen on the front-end: if you would show a list of http network sites on an SSL site, WP will change these into https. To fix this, Really Simple SSL filters the home_url and site_url so it returns http if the site_url is not https.

    While I understand this is confusing in your case, because you already were on SSL, in most cases users are not on SSL already, so won’t run into any issues.

    A possible solution is to check for the force_ssl_login constant in the admin_url filter. I’ll add it to the todo list.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    The check_admin_url function will not replace to http when FORCE_SSL_ADMIN is defined, as of the next version. That should resolve this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dashboard CSS broken upon activation’ is closed to new replies.