- Issue created by @shubhamsprasad
- 🇮🇳India sayan_k_dutta
@shubhamsprasad can you please provide the steps to reproduce this error.
Drupal\Core\Entity\Query\QueryException: Invalid specifier 'redirect_source__path' in Drupal\Core\Entity\Query\Sql\Tables->addField() (line 314 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).
$query = $redirect_storage
->getQuery()
->accessCheck(TRUE)
// Redirects are stored without the leading slash :-(.
->condition('redirect_source__path', ltrim($path_without_prefix, '/'));
if (!empty($langcodes)) {
$query->condition('language', $langcodes, 'IN');
}
$results = $query->execute();
We can use
$query = $redirect_storage
->getQuery()
->accessCheck(TRUE)
// Redirects are stored without the leading slash :-(.
->condition('redirect_source.path', ltrim($path_without_prefix, '/'));
if (!empty($langcodes)) {
$query->condition('language', $langcodes, 'IN');
}
$results = $query->execute();
Active
2.0
Code
@shubhamsprasad can you please provide the steps to reproduce this error.