As a follow up for https://phabricator.wikimedia.org/T419466, we should ensure that when reading list entries are saved to the database, that the page titles are normalized.
Database writes
- For @local projects (page saved on the current wiki), we should apply Title::newFromText($title)->getPrefixedDBkey() when saving the entries.
- For cross-wiki projects, we should only convert spaces to underscores in the page titles. e.g. strtr($title, ' ', '_'). We should not use full Title normalization for pages on different wikis since title normalization varies by language and wiki configurations.
Database lookups
- When we query the database for reading list entries, we should apply the same normalization logic that we use when saving the entries to the DB (see above)