Currently, given the title of a MediaWiki page, it doesn’t seem to be easy for a client to construct a URL to that page’s talk page. Talk:title yields a BadTitleError (T18746); inserting “ talk” before the first colon doesn’t work if the part before that isn’t actually a namespace (example) or if the namespace is translated (example). To do this correctly, I believe you would currently have to get the namespace info from the API and then parse the title yourself.
It would be great to have a special page redirecting to a page’s talk page, e. g. Special:TalkPage/title or Special:Redirect/talk/title. As far as I can tell, nothing of the sort currently exists.
Alternative approaches:
- Provide an action instead of a special page. I don’t think an action makes sense for this. We already have several other redirecting special pages, so a talk page redirect would fit well.
- Make Talk:title actually redirect, as proposed in T18746. Probably technically possible, but looks like it might involve touching very fundamental parts of Title.php and MediaWiki.php, which seems more risky than introducing an independent special page.