Last modified: 2012-02-26 17:08:14 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 T36739, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34739 - SemanticMediaWiki: Different labels.
SemanticMediaWiki: Different labels.
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-26 17:08 UTC by Van de Bugger
Modified: 2012-02-26 17:08 UTC (History)
2 users (show)

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


Attachments

Description Van de Bugger 2012-02-26 17:08:14 UTC
I am writing a new result format (for downloading info) and have a trouble with PrintRequest labels.

A query:

{{ #ask: [[Cache:+]]
| mainlabel = -
| ?#        = cache
...
}}

When this request is executed in-place, everything is ok, $field->getPrintRequest()->getLabel() returns "cache" as expected. 

But, if I get a link to a the same query by using

$res->getQueryLink( 'search' )->getURL()

http://.../index.php?title=Special:Ask&x=-5B-5BCache%3A%2B-5D-5D%2F-3F%3Dcache-23-2D&mainlabel=-&...

and follow the link, $field->getPrintRequest()->getLabel() returns "cache#-".

I would expect request should work identically regardless of execution method -- either using #ask parser function or Special:Ask page.

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


Navigation
Links