Page MenuHomePhabricator

Wikilink can't have special characters used in cirrus search
Open, LowPublic

Description

Hi.
Try in your draft [[Special:Search/New York filesize:<100]], the link is not created. [[Special:Search/New York filesize:100]] is.

Event Timeline

IKhitron created this task.Nov 16 2016, 5:00 PM
Restricted Application added projects: Discovery, Discovery-Search. · View Herald TranscriptNov 16 2016, 5:00 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This is unfortunately due to the incredibly weird way that MediaWiki deals with page titles. < is not valid as part of a page title, so it messes it up, even though Special:Search isn't a page in the way the user thinks about it. I really don't know what we can do about this without totally reworking MediaWiki core.

EBernhardson added a subscriber: EBernhardson.EditedNov 17 2016, 11:14 PM

My appologies this is a poor solution, but for the moment you can use this wikitext:

[//commons.wikimedia.org/wiki/Special:Search?search=New+York+filesize:%3C100 new york]

I can suggest you something better, @Deskana and @EBernhardson. Add special character aliases to search preserved words. For example, filesize:l500, with l for less and m for more. They are not numbers, so there is no ambiguity.

Deskana triaged this task as Low priority.Dec 15 2016, 11:10 PM

Given that this does have a workaround, fixing this more thoroughly is not a high priority.