Steps to reproduce:
- Go to https://en.wikipedia.beta.wmflabs.org/wiki/Talk:Cats (or anywhere else where the feature is enabled).
- Click any reply link.
- Enter {{PAGENAME}}.
The preview shows "API" (the default title) instead of the correct one. The correct title must be passed to the API via the title parameter.