not passing back correct URL