title: How to fetch current url parameter to pass in a href link
body: <p>Current Url :   <strong><a href="http://localhost/invite_project/web/app_dev.php/api/getall/5" rel="nofollow noreferrer">http://localhost/invite_project/web/app_dev.php/api/getall/5</a></strong></p>
  
  <p>Redirection Url</p>
  
  <pre><code>&lt;a href="{{ absolute_url(asset(''))}}app_dev.php/create/{ 'id': app.request.get('_route_params') }" class="btn btn-primary"&gt;Create&gt;
  </code></pre>
  
  <p>I can't fetch <code>Id=5</code> in twig file using <code>app.request.get('_route_params')</code></p>