Last modified: 2014-06-26 17:53:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63861, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61861 - VisualEditor: Show something (other than a blank page) when editing a page with a redirect
VisualEditor: Show something (other than a blank page) when editing a page wi...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-24 19:33 UTC by WhatamIdoing
Modified: 2014-06-26 17:53 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
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. (49.30 KB, image/png)
2014-06-26 17:53 UTC, WhatamIdoing
Details

Description WhatamIdoing 2014-02-24 19:33:54 UTC
When you set a redirect in VisualEditor, it doesn't display anything, so it looks like it didn't work.
Comment 1 James Forrester 2014-02-24 19:43:47 UTC
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.
Comment 2 James Forrester 2014-04-10 20:34:20 UTC
This was mis-labelled; sorry for the confusion.
Comment 3 Alex Monk 2014-04-11 22:45:10 UTC
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.
Comment 4 WhatamIdoing 2014-06-26 17:53:45 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links