haxtheweb / issues

Issue queue for hax, haxcms, elmsln, lrnwebcomponents, wcfactory, websites and more.
Apache License 2.0
11 stars 1 forks source link

figure out how to do vanity domains via `base` evaluation appropriately #2127

Closed btopro closed 1 month ago

btopro commented 2 months ago

https://lab.hax.psu.edu/ as example that loads bc of the new script which is awesome However going to a page and reloading it sets this as the base.

If we had base set appropriately based on being at a vanity then it would be possible to add vanities while editing at the usual address!

btopro commented 2 months ago

Need to add a test AFTER this block or a "loadSiteFromConfig" type of function (might be better) that takes in:

This should be enough (or maybe just load the site from config file) which gets us the correct pathto load up the site.json file effectively

} elseif (isset($GLOBALS["HAXcmsInDocker"]) && $name == "html") {
          // we're in a docker container, howay!
          $site = new HAXCMSSite();
          $site->loadInDocker(HAXCMS_ROOT);
          return $site;
        }