title: How to add action route for submenu in reports using custom module?
body: <p>I have created custom module HP_Orders and created custom menu in reports-&gt;sales-&gt;revenue details and need to provide route of hp orders module for revenue details sub menu.</p>
  <p>When I click on revenue details it should redirect to custom module route</p>
  <p>Menu.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;!--
  /**
   * Copyright © Magento, Inc. All rights reserved.
   * See COPYING.txt for license details.
   */
  --&gt;
  &lt;config xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:module:Magento_Backend:etc/menu.xsd&quot;&gt;
      &lt;menu&gt;
          &lt;add id=&quot;Magento_Reports::report&quot; title=&quot;Reports&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;60&quot; resource=&quot;Magento_Reports::report&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_marketing&quot; title=&quot;Marketing&quot; translate=&quot;title&quot; module=&quot;Magento_Backend&quot; sortOrder=&quot;10&quot; parent=&quot;Magento_Reports::report&quot; resource=&quot;Magento_Reports::report_marketing&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_salesroot&quot; title=&quot;Sales&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;40&quot; parent=&quot;Magento_Reports::report&quot; resource=&quot;Magento_Reports::salesroot&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_salesroot_sales&quot; title=&quot;Orders&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;10&quot; parent=&quot;Magento_Reports::report_salesroot&quot; action=&quot;reports/report_sales/sales&quot; resource=&quot;Magento_Reports::salesroot_sales&quot;/&gt;
          &lt;add id=&quot;HP_Orders::sales_order_view&quot; title=&quot;Revenue Details&quot; translate=&quot;title&quot; module=&quot;HP_Orders&quot; sortOrder=&quot;20&quot; parent=&quot;Magento_Reports::report_salesroot&quot; action=&quot;orders/export/&quot; resource=&quot;HP_Orders::tax&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_salesroot_tax&quot; title=&quot;Tax&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;20&quot; parent=&quot;Magento_Reports::report_salesroot&quot; action=&quot;reports/report_sales/tax&quot; resource=&quot;Magento_Reports::tax&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_salesroot_invoiced&quot; title=&quot;Invoiced&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;30&quot; parent=&quot;Magento_Reports::report_salesroot&quot; action=&quot;reports/report_sales/invoiced&quot; resource=&quot;Magento_Reports::invoiced&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_salesroot_shipping&quot; title=&quot;Shipping&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;40&quot; parent=&quot;Magento_Reports::report_salesroot&quot; action=&quot;reports/report_sales/shipping&quot; resource=&quot;Magento_Reports::shipping&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_salesroot_refunded&quot; title=&quot;Refunds&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;50&quot; parent=&quot;Magento_Reports::report_salesroot&quot; action=&quot;reports/report_sales/refunded&quot; resource=&quot;Magento_Reports::refunded&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_salesroot_coupons&quot; title=&quot;Coupons&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;60&quot; parent=&quot;Magento_Reports::report_salesroot&quot; action=&quot;reports/report_sales/coupons&quot; resource=&quot;Magento_Reports::coupons&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_shopcart_product&quot; title=&quot;Products in Cart&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;10&quot; parent=&quot;Magento_Reports::report_marketing&quot; action=&quot;reports/report_shopcart/product&quot; resource=&quot;Magento_Reports::product&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_shopcart_abandoned&quot; title=&quot;Abandoned Carts&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;20&quot; parent=&quot;Magento_Reports::report_marketing&quot; action=&quot;reports/report_shopcart/abandoned&quot; resource=&quot;Magento_Reports::abandoned&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_products&quot; title=&quot;Products&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;60&quot; parent=&quot;Magento_Reports::report&quot; resource=&quot;Magento_Reports::report_products&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_products_bestsellers&quot; title=&quot;Bestsellers&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;20&quot; parent=&quot;Magento_Reports::report_products&quot; action=&quot;reports/report_sales/bestsellers&quot; resource=&quot;Magento_Reports::bestsellers&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_products_sold&quot; title=&quot;Ordered&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;40&quot; parent=&quot;Magento_Reports::report_products&quot; action=&quot;reports/report_product/sold&quot; resource=&quot;Magento_Reports::sold&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_products_viewed&quot; title=&quot;Views&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;10&quot; parent=&quot;Magento_Reports::report_products&quot; action=&quot;reports/report_product/viewed&quot; resource=&quot;Magento_Reports::viewed&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_products_lowstock&quot; title=&quot;Low Stock&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;30&quot; parent=&quot;Magento_Reports::report_products&quot; action=&quot;reports/report_product/lowstock&quot; resource=&quot;Magento_Reports::lowstock&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_customers&quot; title=&quot;Customers&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;50&quot; parent=&quot;Magento_Reports::report&quot; resource=&quot;Magento_Reports::customers&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_customers_accounts&quot; title=&quot;New&quot; translate=&quot;title&quot; sortOrder=&quot;30&quot; module=&quot;Magento_Reports&quot; parent=&quot;Magento_Reports::report_customers&quot; action=&quot;reports/report_customer/accounts&quot; resource=&quot;Magento_Reports::accounts&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_customers_totals&quot; title=&quot;Order Total&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;10&quot; parent=&quot;Magento_Reports::report_customers&quot; action=&quot;reports/report_customer/totals&quot; resource=&quot;Magento_Reports::totals&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_customers_orders&quot; title=&quot;Order Count&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;20&quot; parent=&quot;Magento_Reports::report_customers&quot; action=&quot;reports/report_customer/orders&quot; resource=&quot;Magento_Reports::customers_orders&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_statistics&quot; title=&quot;Statistics&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;80&quot; parent=&quot;Magento_Reports::report&quot; resource=&quot;Magento_Reports::statistics&quot;/&gt;
          &lt;add id=&quot;Magento_Reports::report_statistics_refresh&quot; title=&quot;Refresh Statistics&quot; translate=&quot;title&quot; module=&quot;Magento_Reports&quot; sortOrder=&quot;10&quot; parent=&quot;Magento_Reports::report_statistics&quot; action=&quot;reports/report_statistics&quot; resource=&quot;Magento_Reports::statistics_refresh&quot;/&gt;
          &lt;add id=&quot;Magento_Search::report_search_term&quot; title=&quot;Search Terms&quot; translate=&quot;title&quot; module=&quot;Magento_Search&quot; sortOrder=&quot;10&quot; parent=&quot;Magento_Reports::report_marketing&quot; action=&quot;search/term/report&quot; resource=&quot;Magento_Reports::report_search&quot; /&gt;
      &lt;/menu&gt;
  &lt;/config&gt;
  </code></pre>
  <p>controller</p>
  <p>Routes.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;!--
  /**
   * Copyright © 2021 HP. All rights reserved.
   */
  --&gt;
  &lt;config xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:App/etc/routes.xsd&quot;&gt;
      &lt;router id=&quot;admin&quot;&gt;
          &lt;route id=&quot;orders&quot; frontName=&quot;orders&quot;&gt;
              &lt;module name=&quot;HP_Orders&quot;/&gt;
          &lt;/route&gt;
      &lt;/router&gt;
  &lt;/config&gt;
  </code></pre>
  <p>Please kindly answer for the same.</p>