Browse Source

HUE-6135 [assist] Fix editor document URLs

Johan Ahlen 8 năm trước cách đây
mục cha
commit
e74a91684f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/core/src/desktop/models.py

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -1124,7 +1124,7 @@ class Document2(models.Model):
       elif self.type == 'oozie-bundle2':
         url = reverse('oozie:edit_bundle') + '?bundle=' + str(self.id)
       elif self.type.startswith('query'):
-        url = reverse('notebook:editor') + '?editor=' + str(self.id)
+        url = '/editor' + '?editor=' + str(self.id)
       elif self.type == 'directory':
         url = '/home2' + '?uuid=' + self.uuid
       elif self.type == 'notebook':