File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,16 @@ export const contextMenuCreateReportDefinition = (baseURI) => {
4949 const timeRanges = getTimeFieldsFromUrl ( ) ;
5050
5151 // check report source
52- if ( / \/ a p p \/ d a s h b o a r d s / . test ( baseURI ) ) {
52+ if ( / \/ a p p \/ d a t a - e x p l o r e r \/ d a s h b o a r d s / . test ( baseURI ) ) {
5353 reportSource = 'dashboard:' ;
54- } else if ( / \/ a p p \/ v i s u a l i z e / . test ( baseURI ) ) {
54+ } else if ( / \/ a p p \/ d a t a - e x p l o r e r \/ v i s u a l i z e / . test ( baseURI ) ) {
5555 reportSource = 'visualize:' ;
56- } else if ( / \/ a p p \/ d i s c o v e r / . test ( baseURI ) ) {
56+ } else if ( / \/ a p p \/ d a t a - e x p l o r e r \/ d i s c o v e r / . test ( baseURI ) ) {
5757 reportSource = 'discover:' ;
5858 }
5959 reportSource += reportSourceId . toString ( ) ;
60- window . location . assign (
61- `reports-dashboards#/create?previous=${ reportSource } ?timeFrom=${ timeRanges . time_from . toISOString ( ) } ?timeTo=${ timeRanges . time_to . toISOString ( ) } `
62- ) ;
60+ applicationService . getApplication ( ) . navigateToApp ( PLUGIN_ID , { path : `#/create?previous=${ reportSource } ?timeFrom=${ timeRanges . time_from . toISOString ( ) } ?timeTo=${ timeRanges . time_to . toISOString ( ) } ` } ) ;
61+
6362} ;
6463
6564export const displayLoadingModal = ( ) => {
You can’t perform that action at this time.
0 commit comments