最近我用英语和法语运行的drupal 8网站无法用法语加载。 (英语是默认语言)
返回的错误是
Symfony \ Component \ Routing \ Exception \ RouteNotFoundException:路由“”不存在。在Drupal \ Core \ Routing \ RouteProvider-> getRouteByName()(core / lib / Drupal / Core / Routing / RouteProvider.php的第187行)。
我已将其跟踪到menu.html.twig中的item.url函数
{{link(item.title,item.url)}}
它返回的url在英语中很好,并且如果在两种语言的link()之外调用,则返回正确的item.title,它只是法语版本中的“link.url”。有什么想法吗?