webtechnick / CakePHP-Facebook-Plugin

CakePHP Facebook Plugin
http://facebook.webtechnick.com
445 stars 138 forks source link

Use of Router::url($this->here) breaks subfolder sites #32

Closed devmatt closed 12 years ago

devmatt commented 12 years ago

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.

webtechnick commented 12 years ago

This has been resolved in latest release.