浏览代码

HUE-6315 [frontend] Avoid redirect to /500 on page error

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

+ 3 - 2
desktop/core/src/desktop/templates/hue.mako

@@ -689,8 +689,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
                 $('#embeddable_' + app).html(r);
                 self.isLoadingEmbeddable(false);
               },
-              error: function () {
-                page('/500');
+              error: function (xhr) {
+                console.error('Route loading problem', xhr);
+                self.loadApp('500');
               }
             });
           } else {