File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
plugins/system/debug/src/Extension Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -344,11 +344,12 @@ public function onAfterRespond(AfterRespondEvent|ApplicationEvent $event): void
344344 }
345345
346346 $ debugBarRenderer = new JavascriptRenderer ($ this ->debugBar , Uri::root (true ) . '/media/vendor/debugbar/ ' );
347- $ openHandlerUrl = Uri::base (true ) . '/index.php?option=com_ajax&plugin=debug&group=system&format=raw&action=openhandler ' ;
348- $ openHandlerUrl .= '& ' . ($ formToken ?? Session::getFormToken ()) . '=1 ' ;
349-
350- $ debugBarRenderer ->setOpenHandlerUrl ($ openHandlerUrl );
351347
348+ if ($ this ->params ->get ('track_request_history ' , false )) {
349+ $ openHandlerUrl = Uri::base (true ) . '/index.php?option=com_ajax&plugin=debug&group=system&format=raw&action=openhandler ' ;
350+ $ openHandlerUrl .= '& ' . ($ formToken ?? Session::getFormToken ()) . '=1 ' ;
351+ $ debugBarRenderer ->setOpenHandlerUrl ($ openHandlerUrl );
352+ }
352353 /**
353354 * @todo disable highlightjs from the DebugBar, import it through NPM
354355 * and deliver it through Joomla's API
You can’t perform that action at this time.
0 commit comments