read the configuration correctly from `$locationProvider`