webtechnick/CakePHP-Facebook-Plugin — Issue #32: Use of Router::url($this->here) breaks subfolder sites
Author: devmatt
Created: 2011-11-13 10:16:02+00:00
State: open

If your Cake application runs from within a folder (e.g. http://example.com/cakephp_application/) Router::url($this->here, true) will create a link which duplications the subfolder structure (e.g. http://example.com/cakephp_application/cakephp_application/).
The fix is to use Router::url(null, true) as the Router::url function only handles urls relative to your app webroot, not your domain webroot.