$message=sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given) to generate a corresponding URL.',$token[3],$name,$token[2],$mergedParams[$token[3]]);
thrownewInvalidParameterException($message);
@@ -315,7 +315,7 @@ public function generateFromRoute($name, $parameters = [], $options = [], $colle
// Drupal paths rarely include dots, so skip this processing if possible.
if(str_contains($path,'/.')){
// the path segments "." and ".." are interpreted as relative reference when
// The path segments "." and ".." are interpreted as relative reference when
// resolving a URI; see http://tools.ietf.org/html/rfc3986#section-3.3
// so we need to encode them as they are not used for this purpose here
// otherwise we would generate a URI that, when followed by a user agent