use correct method for replacement of url property
use correct method for replacement of url property

Refs:https://github.com/cakephp/cakephp/pull/11962
CakeDC/cakephp,ADmad/cakephp,dakota/cakephp,dakota/cakephp,dakota/cakephp,garethellis36/cakephp,ndm2/cakephp,ndm2/cakephp,mvdriel/cakephp,mvdriel/cakephp,CakeDC/cakephp,garethellis36/cakephp,mvdriel/cakephp,CakeDC/cakephp,cakephp/cakephp,garethellis36/cakephp,dakota/cakephp,ndm2/cakephp,cakephp/cakephp,garethellis36/cakephp,ADmad/cakephp,ADmad/cakephp,cakephp/cakephp,mvdriel/cakephp,ndm2/cakephp,ADmad/cakephp,CakeDC/cakephp,cakephp/cakephp