Fixed URL redirection problem on front end