title: yield axios.get() call in Saga changes the pathname to the default location "/"
body: <p>I have have this Saga for retrieving the token from localStorage and sign in the user automatically</p>
  <pre><code>export function* authCheckState(action) {
      const token = localStorage.getItem(&quot;jwt&quot;);
      const expDate = localStorage.getItem(&quot;expDate&quot;);
      if (!token) {
          yield put(actions.logout()); 
      } else {
          const expirationDate = new Date(expDate);
          if (expirationDate &lt;= new Date()) {
              yield put(actions.logout());
          } else {
              axios.defaults.headers.common['Authorization'] = token;
              const username = localStorage.getItem('username');
              // const loggedInUser = yield axios.get(`/users/${username}`);
              // console.log('HERE');
              yield put(actions.loginSuccess());
              yield put(
                  actions.fireTimeout(
                      (expirationDate.getTime() - new Date().getTime())
                      // 10 * 1000 // ms
                  )
              );
          }
  
      }
  }
  </code></pre>
  <p>So If I visit any path in the application for example '/users' it stays the same after executing the saga.</p>
  <p>now the code above as is is working perfectly. However now I want to add an axios call to get some data like this:</p>
  <pre><code>const loggedInUser = yield axios.get(`/users/${username}`);
  // store it in the store.
  </code></pre>
  <p>When I add this axios call. I get redirected to the home page &quot;/&quot;.</p>
  <p>Before: working</p>
  <p><a href="https://i.stack.imgur.com/8UfCW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8UfCW.png" alt="enter image description here" /></a></p>
  <p>After: not working redirection happens</p>
  <p><a href="https://i.stack.imgur.com/Rfbo0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rfbo0.png" alt="enter image description here" /></a></p>