updated bug with link_to_favorite and non logged-in users