Fix issue with redirection where the page was not fully refreshed through Angular.