From 53e0615df79afb951107b23a08eb24261312c9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 9 Mar 2015 15:33:20 -0400 Subject: [PATCH] removed path use external --- public/src/ajaxify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 5e26619253..2392511386 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -89,8 +89,8 @@ $(document).ready(function() { app.previousUrl = url; return ajaxify.go('login'); } else if (status === 302) { - if (data.responseJSON.external && data.responseJSON.path) { - window.location.href = data.responseJSON.path; + if (data.responseJSON.external) { + window.location.href = data.responseJSON.external; } else if (typeof data.responseJSON === 'string') { ajaxify.go(data.responseJSON.slice(1), callback, quiet); }