I am trying to configure my routes so that the last segment of the URL is ignored and can be used as parameter in the twig file.
for example, the following URL should ignore the city-segment
/services/name-of-the-service/city
and should be routed to
/services/name-of-the-service
I have currenty set up the following routing-rule
'services/<service:{slug}>/<city:{slug}>' => 'service/<service>'
Which results into a 404 and says Unable to resolve the request "services/name-of-the-service". Which is the exactly the URL that I want to get parsed...
When I am trying to route to the template
'services/<service:{slug}>/<city:{slug}>' => ['template' => 'services/_entry']
Which seems to load the correct template but the entry can not be parsed...
Any ideas how to solve / work around this problem?