url expansion fixes for locations that are paths