Replace Full PortalURLS for portlet URLs when possible (this will help to apply SPA)