Last modified: 2010-05-15 15:38:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5243 - Sidebar Links with ampersand (&)
Sidebar Links with ampersand (&)
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://unattended.technikz.de
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-13 18:52 UTC by Mario Gzuk
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments

Description Mario Gzuk 2006-03-13 18:52:10 UTC
If I use a link such as
http://sourceforge.net/tracker/?atid=712840&group_id=127437&func=browse which
contains an ampersand the link target shows up to
http://..../index.php/--error:_link_target_missing--.
Comment 1 Rob Church 2006-03-13 20:47:24 UTC
For these situations, create a page in the MediaWiki namespace and place the URL
in that. Then reference the message name (minus the MediaWiki prefix) instead of
the URL in the sidebar.
Comment 2 Mario Gzuk 2006-03-14 06:55:21 UTC
Why you resolved this? This is a bug! The dokumentation says tha with version
1.5 it will be possible to simple add URLs into the sidebar. That works as well
as you dont use the ampersand. What you wrote is a solution---but it doenst
solve the problem......
Comment 3 Brion Vibber 2006-03-14 07:12:10 UTC
The sidebar works like this: you supply the names of MediaWiki localized message 
keys in MediaWiki:Sidebar. The referenced messages contain descriptive text (for 
the text part), or link names (for the links). The links can either be URLs or 
wiki page titles.

As long as that's working, and you seem to be agreeing that it is, this is a 
WORKSFORME. If it's not working, provide some more specific information please.
Comment 4 Mario Gzuk 2006-03-14 08:11:29 UTC
Ok try out that in the sidebar:

http://somewhere.com/test.html?zz=1&xy=2 |Linkname

In the function checkTitle ( &$title, &$name ) file Skin.php the $title is no
object (in the case of the example above). But I dont know where to search for
the reason why this is no object. And if it is no object the error: link target
missing is the retun of this function.

What more informations do you need?
Comment 5 Rob Church 2006-03-14 15:14:27 UTC
An ampersand is not a valid character in a page title. Hence it fails. Hence the
reason we provide another means of doing it.

The documentation is either wrong or needs clarification.
Comment 6 Mario Gzuk 2006-03-14 16:19:15 UTC
Its not valid in the page title, but this is a link....... Just forget it if
nobody wants|need it.
Comment 7 Brion Vibber 2006-03-15 01:02:31 UTC
Rob, an ampersand *is* a valid character in a page title.

Mario, you need to use message names in MediaWiki:Sidebar. The contents of the messages 
are then loaded, and *those* contain the text and link names.
Comment 8 Mario Gzuk 2006-03-15 07:10:59 UTC
I dont understand it. Please give me an example how to use such a link in the
sidebar:

http://somewhere.com/test.html?zz=1&xy=2 |Linkname

If nobody has a solution and anybody means that this is no bug just close this
"bug".....
Comment 9 Brion Vibber 2006-03-15 20:24:22 UTC
In MediaWiki:Sidebar:
* Linkurl|Linkname

In MediaWiki:Linkurl:
http://somewhere.com/test.html?zz=1&xy=2

In MediaWiki:Linkname:
My Cool Link
Comment 10 Mario Gzuk 2006-03-15 21:46:57 UTC
In MediaWiki:Sidebar:
* Linkurl|Linkname

Did you read the report? This is exactly what is whout a function if you use a
link with an ampersamd....
Comment 11 T. Gries 2006-03-15 21:59:47 UTC
(In reply to comment #9)
In MediaWiki:Sidebar:

* Linkurl | Linkname
* mailto:name@domain.tld?Subject=this&body=Hello%20my%20dear%20Wikiadmin | Mail
to Admin

Reopening the bug, because this really does not work.
Comment 12 Rob Church 2006-03-15 23:19:47 UTC
(In reply to comment #9)

> mailto:name@domain.tld?Subject=this&body=Hello%20my%20dear%20Wikiadmin

^^ that bit goes in something like MediaWiki:Email-url. You then put "email-url"
in MediaWiki:Sidebar. This is documented at
http://www.mediawiki.org/wiki/Help:Navigation_bar!
Comment 13 T. Gries 2006-03-15 23:49:23 UTC
(In reply to comment #12)
> .. that bit goes in something like MediaWiki:Email-url. You then put "email-url"
> in MediaWiki:Sidebar. This is documented at
http://www.mediawiki.org/wiki/Help:Navigation_bar#Link_target

Thanks for the extremly helpful link.
I refactored that specific section and added a complex example for "mailto:..."

Everything works as explained - "indirect addressing" via the MediaWiki:my-url
is a very surprising feature here.
Comment 14 Mario Gzuk 2006-03-16 06:49:35 UTC
* Since MediaWiki version 1.5, you can alternatively link to an external URL by
just inserting the target URL before the vertical bar, as in this example:
    http://www.domain.com |Link to Domain

That is the MAIN content of this bug. Because this doesnt work as described!
Please dont post everer and ever agian the old style to do the "linking".

Thank you

Comment 15 Brion Vibber 2006-03-16 07:23:45 UTC
That sounds like it would cause confusion from people trying to use strings that are 
not message keys; I'd strongly recommend removing this so that the message keys can 
work consistently.

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


Navigation
Links