How to fix Symfony\Component\Routing\Exception\RouteNotFoundException: Route "" does not exist.

This error occurs when you link to custom routes in drupal:

href="{{ path(contest.walloffame) }}

Solution

Add parentheses solves this issue:

href="{{ path('contest.walloffame') }}

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!