Don't use 'url' value when 'apply' key exists

Closes #372