Fix values of ROUTE_NAME and ROUTE_OBJECT to what they used to be before d0b651.