The encoded titles like {{ARTICLEPAGENAMEE}} cannot be used in constructing URLs when they are used as part of the PATH rather than QUERY, because the '/' symbol is not escaped, thus breaking the URL's structure. This is highly useful for RESTy APIs like page views. See T129346 for an example.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Yurik | T129346 Unable to get pageviews for the title with ' in the name | |||
| Open | None | T129901 Encode '/' as part of the {{*E}} magic keywords like PAGENAMEE |
Event Timeline
Comment Actions
Come to think of it, encoding '/' alone might not solve the problem. wfEscapeWikiText() escapes a lot more characters, and the '/' is only the more obvious one. Others include square brackets [ and ], ampersands, etc. We need a clear way to url PATH-encode article's title. Any suggestions?