I’m experiencing an issue with the Admin Bar repeating when a plugin I’m building defines routes. Any thoughts as to where I would begin troubleshooting this? This is the define routes hook I’m using and attached is a screenshot of what I’m seeing on the public side of things.
``
function hookDefineRoutes($args)
{
//Don’t add these routes on the admin side to avoid conflicts.
if (is_admin_theme()) {
return;
}
$router = $args["router"];
$router->addConfig(
new Zend_Config_Ini(
PLUGIN_DIR . "/myplugin/routes.ini",
"routes"
)
);
}
``