CMS-3708 Use path instead of url as base in admin and portal.