Explorar o código

HUE-6135 [assist] Fix editor document URLs

Johan Ahlen %!s(int64=8) %!d(string=hai) anos
pai
achega
e74a91684f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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':
       elif self.type == 'oozie-bundle2':
         url = reverse('oozie:edit_bundle') + '?bundle=' + str(self.id)
         url = reverse('oozie:edit_bundle') + '?bundle=' + str(self.id)
       elif self.type.startswith('query'):
       elif self.type.startswith('query'):
-        url = reverse('notebook:editor') + '?editor=' + str(self.id)
+        url = '/editor' + '?editor=' + str(self.id)
       elif self.type == 'directory':
       elif self.type == 'directory':
         url = '/home2' + '?uuid=' + self.uuid
         url = '/home2' + '?uuid=' + self.uuid
       elif self.type == 'notebook':
       elif self.type == 'notebook':