Last modified: 2010-06-11 19:28:01 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 T25915, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23915 - Using pipes in links with punctuation truncates final link
Using pipes in links with punctuation truncates final link
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-11 17:25 UTC by Douglas Gardner
Modified: 2010-06-11 19:28 UTC (History)
3 users (show)

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


Attachments

Description Douglas Gardner 2010-06-11 17:25:31 UTC
When, on enwikinews, I tried typing, for example, [[Alpha beta, gamma|]], saving the link transforms the link into [[Alpha beta|Alpha beta]], and not [[Alpha beta, gamma|Alpha beta gamma]].

** STEPS TO REPRODUCE **
1. Edit a page
2. Type a wikilink of any kind
3. Insert a comma somewhere in the link
3. End with "|]]", instead of "]]" or "|Epsilon]]"
4. Save
5. Look at the link you created

** WHAT SHOULD HAVE HAPPENED **
The software should only display after the first colon when viewing a page.

** WHAT ACTUALLY HAPPENED **
The software truncates the second half of the link so that only the part before the comma is saved

** EXAMPLES **
[[Category:Green eggs, and bacon|]] converts to [[Category:Green eggs, and bacon|Green eggs]].

[[Pineapples, sweetcorn & egg fried rice|]] converts to [[Pineapples, sweetcorn & egg fried rice|Pineapples]].
Comment 1 Bawolff (Brian Wolff) 2010-06-11 17:27:14 UTC
I'm pretty sure this is intentional.
Comment 2 Roan Kattouw 2010-06-11 19:28:01 UTC
Yes, this is intentional. [[Foo, bar|]] expands to [[Foo, bar|Foo]]. If, as you say, [[Foo, bar|]] expands to [[Foo|Foo]] that would be a bug, but I think that was a typo on your part.

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


Navigation
Links