Replace deprecated vars['url'] reference