router enabled hideScript causes issues with baseUrl