Change method name formatUrl to formatPath