From 7e9cf13aa356f991f48ba0a943bdab9b4d3c9233 Mon Sep 17 00:00:00 2001
From: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Date: Tue, 31 Jan 2017 23:29:21 +0900
Subject: Use Client APIs to resolve URLs (#5148)

---
 webapp/client/web_client.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/client/web_client.jsx')

diff --git a/webapp/client/web_client.jsx b/webapp/client/web_client.jsx
index 99f30da37..f5d7f6c80 100644
--- a/webapp/client/web_client.jsx
+++ b/webapp/client/web_client.jsx
@@ -50,7 +50,7 @@ class WebClientClass extends Client {
             return;
         }
 
-        if (err.status === HTTP_UNAUTHORIZED && res.req.url !== '/api/v3/users/login') {
+        if (err.status === HTTP_UNAUTHORIZED && res.req.url !== this.getUsersRoute() + '/login') {
             GlobalActions.emitUserLoggedOutEvent('/login');
         }
 
-- 
cgit v1.2.3-1-g7c22

