diff --git a/dashboards-reports/public/components/context_menu/context_menu.js b/dashboards-reports/public/components/context_menu/context_menu.js index e530472f..f30e336d 100644 --- a/dashboards-reports/public/components/context_menu/context_menu.js +++ b/dashboards-reports/public/components/context_menu/context_menu.js @@ -124,7 +124,7 @@ const generateInContextReport = async ( // try to match uuid and user entered custom-id followed by '?' in URL, which would be the saved search id for discover URL // custom id example: v1s-f00-b4r1-01, Filebeat-Apache-Dashboard-ecs, -const getUuidFromUrl = () => window.location.href.match(/[0-9a-zA-Z-]+\?/); +const getUuidFromUrl = () => window.location.href.match(/([0-9a-zA-Z-]+)\?/); const isDiscover = () => window.location.href.includes('discover'); // open Download drop-down