I set up my site’s baseURL as directed, to “http://mysite.com/”. Worked great until I enabled HTTPS for my domain; but then accessing the domain as “https://mysite.com” results in a mangled page without CSS nor scripts, because those resources are still being loaded from “http://” URLs, and the browser (Safari) correctly blocks those loads as insecure.
I worked around this by changing the baseURL to:
baseurl = "/"
Works like a charm, and I can now view the page with or without HTTPS with no problems.
So now I’m wondering, why would one put the scheme/hostname in the baseURL? What benefit is there for identifying resources by full URLs instead of by paths? It just makes the page more fragile and slightly larger, and adds one more thing the developer has to manually set up before the site will work.