Last modified: 2014-06-28 22:38:08 UTC
Intention: Linking to a file using visual editor Steps to Reproduce: 1. Edit page on using VE 2. Click add link 3. Enter a filename with File-prefix (e.g. File:Foo.svg) 4. Press enter 5. Press enter again The same thing happens for categories or if the preceding colon is added manually. Actual Results: 4. Inserted text is changed to :File:Foo.svg 5. Inserted text is changed to ::File:Foo.svg Expected Results: 4. As result 5. No change Reproducible: Sometimes The same thing happens for categories or if the preceding colon is added manually. I can get this to happen repeatedly but occasionally VE will correctly know not to add the second colon (have not identified when though.
Created attachment 14992 [details] Screencast Added video since this is not 100% reproducible
Also happening with FF, Win8. The resulting wikilink works, though.
Here's a variation: 1. Edit page on using VisualEditor. 2. Type the file name you want (with or without the colon prefix that you want): File:Example.jpg 3. Open the link inspector, which will offer to link these files (at least on en.wp): :File:Example.jpg File:Example.jpg File:Example.JPG 4. Choose the first. Press enter. Now it has changed the link target to "::File:Example.jpg" and says "Invalid page title". (Saving this link will work correctly anyway.) 5. Alternatively, choose the second, and press enter. This also works and does not produce the error message.
Dupe of 50279 (and now fixed). *** This bug has been marked as a duplicate of bug 50279 ***