title: error with url path with laravel and react-router
body: <p>I am facing a path issue with react router and laravel. I want to go to this path: /users/create . Its renders fine with react router but when i am in this path and i refresh the page i get a 404 and redirected due to middleware. Why is this happening?</p>
  
  <p>** Note: When i use everywhere users-create instead users/create it works but its not what i want.</p>
  
  <p>Code:</p>
  
  <p>AppRouter.js</p>
  
  <pre><code> &lt;Router history={history}&gt;
                  &lt;div className="wrapper"&gt;
                      &lt;Sidebar/&gt;
                      &lt;div className="main-panel"&gt;
                          &lt;Navbar/&gt;
                          &lt;Switch&gt;
                              &lt;Route exact path='/dashboard' component={Dashboard} /&gt;
                              &lt;Route exact path='/categories' component={Category} /&gt;
                              &lt;Route exact path='/users/create' component={UserCreate} /&gt;
                              &lt;Route exact path='/users' component={User} /&gt;
                              &lt;Route component={NotFound}/&gt;
                          &lt;/Switch&gt;
                          &lt;Footer/&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/Router&gt;
  </code></pre>
  
  <p>Routes.php</p>
  
  <pre><code>Route::view('/dashboard', 'main')-&gt;middleware('auth', 'preventHistory');
  Route::view('/categories', 'main')-&gt;middleware('auth', 'preventHistory');
  Route::view('/users/create', 'main')-&gt;middleware('auth', 'preventHistory');
  Route::view('/users', 'main')-&gt;middleware('auth', 'preventHistory');
  </code></pre>
  
  <p>Sidebar.js</p>
  
  <pre><code>                                    &lt;li className="nav-item "&gt;
                                          &lt;NavLink exact to='/users' activeClassName='active'&gt;
                                              &lt;span className="sidebar-normal"&gt;y&lt;/span&gt;
                                          &lt;/NavLink&gt;
                                      &lt;/li&gt;
                                      &lt;li className="nav-item "&gt;
                                          &lt;NavLink exact to='/users/create' activeClassName='active'&gt;
                                              &lt;span className="sidebar-normal"&gt;x&lt;/span&gt;
                                          &lt;/NavLink&gt;
                                      &lt;/li&gt;
  </code></pre>