fixes issue with redirection for details page