Why is Modx Cloud turning my links to the cloud address whenever I preview a page? -
i have site runs on modx cloud , every time preview page (like wordpres preview button), modx cloud server address linking me test page, instead of "preferred .url". example 123modxcloud.com/test-page.html instead of preferred.com/test-page.html. whenever happens, whole site's url turns modx cloud server address. main menu links, when happens, font icons used turns unreadable. firebug says:
cross-origin request blocked: same origin policy disallows reading remote resource @ http://www.preferred.com/web_assets/inc/icons/iconmoonfonts/fonts/icomoon.woff. can fixed moving resource same domain or enabling cors.
when sent report modx support team, said can clear cache. works fix not cure because when preiview site again, happens again. need clear cache because if don't, website show squares font icons use. not mention url turns modx cloud address long , not "pretty domain name" set to.
lots of modx sites , templates set base url tag. if yours set preferred url (rather reflecting site/domain you're viewing site on) causing problem.
<base href="[[++site_url]]" />
set uncached , shouldn't have problem urls , cors since served same domain:
<base href="[[!++site_url]]" />
Comments
Post a Comment