{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1877","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1877/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1877/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1877/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1877","id":101371576,"number":1877,"title":"Infinite loop","user":{"login":"khachaturs","id":8077027,"avatar_url":"https://avatars.githubusercontent.com/u/8077027?v=3","gravatar_id":"","url":"https://api.github.com/users/khachaturs","html_url":"https://github.com/khachaturs","followers_url":"https://api.github.com/users/khachaturs/followers","following_url":"https://api.github.com/users/khachaturs/following{/other_user}","gists_url":"https://api.github.com/users/khachaturs/gists{/gist_id}","starred_url":"https://api.github.com/users/khachaturs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khachaturs/subscriptions","organizations_url":"https://api.github.com/users/khachaturs/orgs","repos_url":"https://api.github.com/users/khachaturs/repos","events_url":"https://api.github.com/users/khachaturs/events{/privacy}","received_events_url":"https://api.github.com/users/khachaturs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-17T08:49:02Z","updated_at":"2015-08-17T11:39:40Z","closed_at":"2015-08-17T11:39:40Z","body":"Project is set up and is working fine on local machine, but when I deploy to the server it stats redirecting to login page all the time.\r\n\r\nDuring debugging i found this condition in app.js file\r\n\r\nif (response.status == 401 && response.data.path!=\"/api/account\") {\r\n  // redirecting to login page\r\n}\r\n\r\n\r\nagain, it works fine on local machine, but on the server when it calls \"api/account\", returned  \"response.data.path\" is null, it's again being redirected to the login page, and doing the same call. Here goes the infinite loop.\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/131791437","html_url":"https://github.com/jhipster/generator-jhipster/issues/1877#issuecomment-131791437","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1877","id":131791437,"user":{"login":"jdubois","id":316835,"avatar_url":"https://avatars.githubusercontent.com/u/316835?v=3","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T11:39:40Z","updated_at":"2015-08-17T11:39:40Z","body":"@deepu105 indeed, this is supposed to be solved (and I've never had the issue myself!)\r\n\r\nSo @khachaturs I'm closing this as:\r\n\r\n- you did not provide your JHipster version number (we don't know if it's fixed or not)\r\n- you did not provide your JHipster options (this is probably linked to your security configuration)\r\n- and the title of your ticket is not explicit\r\n\r\nPlease, also have a look in the tickets history, this has already been discussed, as mentioned by @deepu105 \r\n\r\n-> please follow our guidelines for submitting issues, and re-submit your issue correctly"}}