Show url attibuts in twig I have this in my routing page

function_adh_apport.adh_apport:
  path: '/collecte/apports/{date}'
  defaults:
    _controller: '\Drupal\function_adh_apport\Controller\RapportsController::filtrer'
    date: ''
  requirements:
    _permission: 'access content'
    date: \d+


I got this url : ../web/collecte/apports/2016

but now, i'm trying to show in twig the value of {date}

So i do this in twig :

{{ path('function_adh_apport.adh_apport', { 'date': apports.date}) }}


but it return "../web/collecte/apports" and not just "2016"
I have do a preprocess function in my file ".module" like this

/**
 * Implements hook_preprocess_page()
 */
function MYTHEME_preprocess_page(&amp;$vars) {
  $vars['get']['date'] = \Drupal\Component\Utility\XSS::filter($_GET['date']);
}


but not sure that correct