title: React Router V4 - Warning: You tried to redirect to the same route you're currently on: "/home/dashboard"
body: <p>I am getting this error tried different ways of routing still no luck.</p>
  
  <p>I have route config file i.e  route.js</p>
  
  <pre><code>const Root = ({ store }) =&gt; (
      &lt;Provider store={store}&gt;
          &lt;BrowserRouter&gt;
              &lt;div&gt;
                  &lt;Route path='/' component={ App }/&gt;  
              &lt;/div&gt;
          &lt;/BrowserRouter&gt;
      &lt;/Provider&gt;
  )
  </code></pre>
  
  <p>Now at App.js</p>
  
  <pre><code>class AppComp extends Component {
      render() {
          const {match} = this.props;
          let navClass = 'active';
  
          if(this.props.sideClass === "nav-ssh") {
              navClass = "active-ssh"; 
          }
  
          return (
              &lt;div&gt;
                  &lt;div className="container"&gt;
                      &lt;div className="main"&gt;
                          &lt;Route render={()=&gt;&lt;Header sideNavClass={this.props.sideNavClass} /&gt;} /&gt;
                          &lt;Route render={()=&gt;&lt;SideNav navActiveClass={navClass} currentLocation={this.props.location.pathname} /&gt;}/&gt;
                          &lt;Redirect to="/home/dashboard" /&gt;s
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          );
      }
  }
  </code></pre>
  
  <p>I want to load app always so put it in the highest level and header and sidenav should also gets loaded always so they are inside app. </p>
  
  <p>For any unknown path and for first time load I redirected to /home/dashboard</p>
  
  <p>I understand it must be coming to / twice so this warning. </p>
  
  <p>How can I configure my router to achieve the same and resolve the warning. </p>
  
  <p>Any help would be greatly appreciated.</p>