Fix bug replacing resourceParam by resourceName in generated URL