Window.location.pathname not correct on playcanvas hosted builds

A post was split to a new topic: Cloudfront hosting causing CORS/origin issues