Last modified: 2014-06-26 17:53:45 UTC
When you set a redirect in VisualEditor, it doesn't display anything, so it looks like it didn't work.
We should probably show the same as the MW-rendered redirect: https://bits.wikimedia.org/static-1.23wmf14/skins/common/images/redirectltr.png … or ideally a better system that doesn't use an image, and fix MW whilst we're at it.
This was mis-labelled; sorry for the confusion.
I spoke to Roan about what I would need to know to do this today. After some explanation we realised that this relies on meta items (e.g. redirects) having the possibility of being visible (at the moment they are just stripped from the model data so we don't know where they are). That is somewhere on his work list but he is not particularly close to starting it. Also, I thought for a moment that since a valid redirect must be in a certain position (at the top of the document - if it's under something else then it's actually just a list element starting with 'redirect' and with a link to the target page), we could perhaps rely on that to make it visible. But I suspect that would be a pretty ugly solution. When checking that I was right about the valid positioning of redirects, I found that Parsoid implements redirects wrong (or rather, differently to MediaWiki core's parser): it seems quite happy to accept a redirect that is anywhere in the document.
Created attachment 15753 [details] In this case, I re-pointed a redirect, so it was displayed, and now it *looks like* changing it caused the redirect to be removed rather than changed.