Fix incorrect method signature for generate url.