Fixed patch URL handling