浏览代码

HUE-6077 [frontend] Support the old /notebook routes too

Enrico Berti 8 年之前
父节点
当前提交
c2ff40d
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      desktop/core/src/desktop/templates/hue.mako

+ 6 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -763,6 +763,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
               self.changeEditorType(window.location.getParameter('type'));
             }
           }},
+          { url: '/notebook/editor', app: function () {
+            page('/editor' + (window.location.getParameter('editor') !== '' ? '?editor=' + window.location.getParameter('editor') : ''));
+          }},
           { url: '/filebrowser/view=*', app:  'filebrowser' },
           { url: '/filebrowser/*', app: function () {
             page('/filebrowser/view=' + DropzoneGlobals.homeDir);
@@ -810,6 +813,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
               });
             }
           }},
+          { url: '/notebook/editor', app: function () {
+            page('/notebook' + (window.location.getParameter('notebook') !== '' ? '?notebook=' + window.location.getParameter('notebook') : ''));
+          }},
           { url: '/oozie/editor/bundle/*', app: 'oozie_bundle' },
           { url: '/oozie/editor/coordinator/*', app: 'oozie_coordinator' },
           { url: '/oozie/editor/workflow/*', app: 'oozie_workflow' },