Changed code for redirection on desktop version