getpathtranslation invalid path temporary workarround
This commit is contained in:
parent
7e460b9764
commit
88f7b8c285
|
@ -55,8 +55,8 @@ class MaterioDecoupledLanguageLinks extends ControllerBase {
|
||||||
if (!$url_object) {
|
if (!$url_object) {
|
||||||
// if path does not exists rtuen an error
|
// if path does not exists rtuen an error
|
||||||
return new JsonResponse(array(
|
return new JsonResponse(array(
|
||||||
"links" = [],
|
"links" => [],
|
||||||
"error" = "path {$path} is not valid"
|
"error" => "path {$path} is not valid"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
$route_name = $url_object->getRouteName();
|
$route_name = $url_object->getRouteName();
|
||||||
|
|
Loading…
Reference in New Issue