From T289738:
The article URLs are generated incorrectly, e.g. derived from page titles with spaces appearing as %20 instead of the official URLs. This causes:
- Delay from appserver due to likely CDN cache miss.
- Possibly a 404 Not Found on non-English wikis due to incorrect encoding.
- Possibly stale content due to being a non-canonical URL and thus missing purges.
- Full extra network roundtrip due to redirect.
These originate from the the query to the geosearch API
The existing Nearby calls mw.util.getUrl( title ) on the title to get the correct URL. We can get the same value by using the inprop=url in the request.
TODO
- Add inprop=url to the request
- Pass the URL to the Typeahead Suggestion.
Developer notes
Don't worry about the fact we're using WVUI. We'll switch to Codex at a a later point.