title: Laravel router redirect to wrong path
body: <p>I wrote this code expecting to be redirected to the root url (<code>/</code> or <code>/home</code>), but instead, it's redirecting to <code>%7Bhome%7D</code>.</p>
  
  <pre><code>Route::get('/{home}', ['as' =&gt; 'home', function () {
     return view('home');
  }])-&gt;where('home', '(home)?');
  </code></pre>
  
  <p>Does anyone know where the problem is?</p>
  
  <p>note: it does support both urls (<code>/</code> or <code>/home</code>). the problem is just when calling for its name on redirects.</p>
  
  <p>Thanks in advance!</p>