malyshev/yii-debug-toolbar — Issue #25: wrong links when base tag is present
Author: mck89
Created: 2011-10-13 12:52:49+00:00
State: open

If the site includes a <base> tag the toolbar links always redirect you to the base url when clicked.
For example let's say that you have a <base href="http://test.com/"> in your template and you are visiting an internal page like http://test.com/foo/bar.html, if you click on a link of the toolbar you will be redirected to http://test.com#yw1, this makes impossible to debug internal pages.
This happens because the href of the links is in format "#name", to fix it you can simply include the current page url before the fragment.