Update route.php

Bugfix with automatic template substitution