Fix a bug with the hardcoded location for the name search API

- Implemented getHostLocation() in appConfig.js