Substituting url params only in the path part of the url