Use dnv.config.baseUrl, not locals.baseUrl

locals.baseUrl doesn't exist.
Use config.url instead of concatenation for urls

This protects us from weird slash problems in the urls (I hope).
Parse then href on the url, rather than format

Format strips off the baseUrl
Add a leading slash to the locations url
Handle double leading slash in url