[frontend] Add location info for command.Redirect