fix url generation for commands