Fix url generation for CustomMethods