title: Redirect to view but change URL in Laravel
body: <p>I'm trying to redirect the user after the <code>create wizard</code> is complete back to the main page. </p>
  
  <p>If I write in my controller <code>return view('main')-&gt;with('key'=&gt;'data')</code>, all is fine, but the URL does not change to <code>localhost:8080</code> but it stays as 'localhost:8080/wizard/finish`. </p>
  
  <p>If I use <code>redirect('/')-&gt;with(['message' =&gt; 'Done.'])</code> it redirects to the main page, but because there is already a <code>Route::get('/','Controller')</code>, the controller is triggered and it returns my default main page with no message. </p>
  
  <pre><code> &lt;div class="row"&gt;
              &lt;div class="col-12"&gt;
                  @if (isset($message))
                      &lt;p align="center" style="color: red;"&gt;&lt;strong&gt;{{$message}}&lt;/strong&gt;&lt;/p&gt;
                  @endif
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>EDIT: With a breakpoint in the <code>MainPageController</code> (mapped to <code>/</code>), I see that this controller is triggered when there is a redirect to the <code>/</code> route. Thus, I lose the <code>$message</code>, as the <code>MainPageController</code> also returns the same view, but with no message.</p>