Use just pathname from a location