- π¬πͺGeorgia chilaa
Yes it is, but somehow there was one node in database with null alias, that threw 500 on several pages
Empty path alias name messing up processPath function
if I create path alias that has null as alias field, AliasRepository does not add criteria for "alias" field to not be null, as a result it returns object that has not set alias field, then in the UrlGenerator->processPath expect "alias" to be set and passes it to processOutbound
Create path alias record that has alias field null, then try to load that page
Add one condition in lookupBySystemPath function to query which excludes path aliases that has alias null:
$select = $this->getBaseQuery()
->fields('base_table', ['id', 'path', 'alias', 'langcode'])
->condition('base_table.path', $this->connection->escapeLike($path), 'LIKE')
->condition('base_table.alias', NULL, 'IS NOT NULL');
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Yes it is, but somehow there was one node in database with null alias, that threw 500 on several pages