Skip to content
Snippets Groups Projects
Commit f2a233c5 authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by Joris Vercammen
Browse files

Issue #3061398 by gun_dose: Entity:url() returns wrong url on search api pages

parent 8a14f5b8
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,12 @@ class PathProcessorSearchApiPage implements InboundPathProcessorInterface, Outbo
return $path;
}
// Skip processing of no 'Search API Page' routes.
$url_object = \Drupal::service('path.validator')->getUrlIfValid($path);
if ($url_object && strpos($url_object->getRouteName(), 'search_api_page.') !== 0) {
return $path;
}
if (!isset($options['language']) || empty($options['language'])) {
return $path;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment