I have wrapped Silex around a legacy app. My index.php looks like this:
$app->match('/{page}/{action}/{part}/{detail}', function($page, $action, $part, $detail) {
})
->value('page', 'backoffice')
->value('action', null)
->value('part', null)
->value('detail', null)
;
The problem I'm facing is that there are a lot of URLs that have trailing slashes. For example http://site/contact/
or http://site/backoffice/erp/
When there is a trailing slash the Silex route does not work. Does anyone know how I can fix this?