Move absolute_url lookups to a dict