Fixed referer route url for root redirection

 Solve issue #4471