luisdias/CakePHP-Report-Manager-Plugin — pull request #1 by srs81 (2012-04-11 14:57:04+00:00)
Title: JS changes to work on non-root URLs

Hi, thanks for the great plugin. I found one problem where it doesn't work on non-root URLs.

I see that you solved the problem using the window.location and Javascript, but for some reason, it doesn't work on my app install.

I've re-factored the code slightly to get the "firstLevel" variable from CakePHP itself, so that way its always getting the right URL. This also reduces the Javascript dependency for getting the path information.