In Cakephp 2.x you can get current url in view by using $this->here; or  ...