Last modified: 2014-06-16 18:27:32 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 T67640, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65640 - Link is missing from the 'Create the page ...' text on the search result page
Link is missing from the 'Create the page ...' text on the search result page
Status: RESOLVED INVALID
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
Smartphone other
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-22 15:40 UTC by Istvan Bujdoso
Modified: 2014-06-16 18:27 UTC (History)
7 users (show)

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


Attachments
Screenshot of the page where the issue can be found. (99.01 KB, image/png)
2014-05-22 20:06 UTC, Istvan Bujdoso
Details

Description Istvan Bujdoso 2014-05-22 15:40:58 UTC
I'm searching for a keyword, e.g.: 'test' (the page does not exist yet). On the search result page the link is missing from the 'Create the page "Test" on this wiki!' text. Because of this issue I can't create new pages from my mobile.

Smartphone details: Sony Xperia SP, Android v4.3, Chrome v34
Comment 2 Istvan Bujdoso 2014-05-22 20:06:30 UTC
Created attachment 15458 [details]
Screenshot of the page where the issue can be found.
Comment 3 Istvan Bujdoso 2014-05-22 20:08:49 UTC
Hi Florian,

Yes, that page. I've attached a screenshot.
Comment 4 Florian 2014-05-22 20:15:27 UTC
Since this speed up change:
https://gerrit.wikimedia.org/r/#/c/126723/1

First workaround for you: Change into Beta mode (Menu -> Settings -> Beta) and login, then redlinks are clickable. But in actual version of mobilefrontend (i looked into git repository), the "Create new page" is unvisible :?
Comment 5 Florian 2014-05-22 20:28:12 UTC
I will add the change owner and reviewer to this bug (hope it's ok :)), so we can decide if we change here something or not. Because, like i said, the "Create the page" element isn't shown in actual git version and on Wikipedia Wikis.
Comment 6 Bingle 2014-05-23 02:30:21 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/fZd8diDV
Comment 7 Istvan Bujdoso 2014-05-23 13:24:11 UTC
Thank you for the workaround. Unfortunately it's not working.

If "Create the page" element isn't shown then how can I add new pages?
Comment 8 Florian 2014-05-23 13:33:04 UTC
Yeah, like i said, i thought you have a local installation, where you edit MobileFrontend to show these line :) To create a page for now, open the wiki with the pagename, for example:
http://en.m.wikipedia.org/wiki/Testsite_that_does_not_exist
and click the edit pen, like you want to edit an existing page.
Comment 9 Juliusz Gonera 2014-05-23 14:47:19 UTC
The screenshot you attached shows a pretty old version of MobileFrontend. On English Wikipedia it looks like this:
http://en.m.wikipedia.org/w/index.php?search=asgasggas&fulltext=search

No link, no plain text either.
Comment 10 Florian 2014-05-23 14:58:14 UTC
Now the question is: Is the reason to hide the "create link" link via css still present? The change:
https://gerrit.wikimedia.org/r/#/c/76270/

I tested on local wiki, and the element is shown correctly?
Comment 11 Jon 2014-05-23 15:08:03 UTC
If you look closely at the search page HTML the link is there it is just hidden via CSS with display none- it can be overriden by MediaWiki:Mobile.css though which is what I suspect Istvan Bujdoso is doing?
(see less/specials/search.less)

This sounds like a request for new page editing for a 3rd party wiki.
We should probably enable red links by default and configure it for Wikimedia wikis to be disabled. It seems to punish 3rd party users by not giving them the chance.
Comment 12 Florian 2014-05-23 15:13:32 UTC
@Jon: Maybe a new configuration variable?
Comment 13 Jon 2014-05-23 15:22:41 UTC
$wgMFNewPageCreation = false;
maybe.
At least than 3rd parties can toggle it on :)
Comment 14 Florian 2014-05-23 15:31:07 UTC
Hmm, you would to toggle the create page link? Then the users have the problem, that the redlinks.js remove all links on page, including the "Create new". Maybe it's better to toggle the redlink remove, which remove the "Create page" link, if enabled :)
Maybe:
$wgMFRedlinkRemove
-> true: all redlinks will be removed (like actually) and serach create new page will be removed
-> false: nothing to do
Comment 15 Gerrit Notification Bot 2014-05-23 22:35:20 UTC
Change 135120 had a related patch set uploaded by Florianschmidtwelzow:
Introducing new "wgMFRemoveRedlinks" config

https://gerrit.wikimedia.org/r/135120
Comment 16 Istvan Bujdoso 2014-05-24 17:27:45 UTC
(In reply to Florian from comment #8)
> Yeah, like i said, i thought you have a local installation, where you edit
> MobileFrontend to show these line :) To create a page for now, open the wiki
> with the pagename, for example:
> http://en.m.wikipedia.org/wiki/Testsite_that_does_not_exist
> and click the edit pen, like you want to edit an existing page.

Thanks for the workaround. Not exactly user friendly solution...
Comment 17 Istvan Bujdoso 2014-05-24 17:34:22 UTC
(In reply to Jon from comment #11)
> If you look closely at the search page HTML the link is there it is just
> hidden via CSS with display none- it can be overriden by
> MediaWiki:Mobile.css though which is what I suspect Istvan Bujdoso is doing?
> (see less/specials/search.less)
> 
> This sounds like a request for new page editing for a 3rd party wiki.
> We should probably enable red links by default and configure it for
> Wikimedia wikis to be disabled. It seems to punish 3rd party users by not
> giving them the chance.

Apart from the LocalSettings.php file I didn't edit any files. I only installed MediaWiki + MobileFrontend and didn't develop/modify anything on these systems.
Comment 18 Istvan Bujdoso 2014-05-24 17:38:23 UTC
Does anyone know when will be a user friendly way to add new pages available to MobileFrontend? (E.g.: red links or a button)
Comment 19 Florian 2014-05-24 17:42:22 UTC
Like Max Sem said in gerrit:
> We have plans to deprecate red link removal completely, we'd better go down that road.

So, after the removal of redlinks is removed, the "create new page" link can be shown. I don't know, when the relink remove function will be deprecated :)
Comment 20 Istvan Bujdoso 2014-05-26 15:44:53 UTC
Thank you for your reply Florian.

Could you tell me what is the name of the redlink remove function?
Comment 22 Istvan Bujdoso 2014-05-27 11:21:59 UTC
Thank you.

I use the stable version of MediaWiki (v1.22.6) and the MobileFrontend that can be downloaded from https://www.mediawiki.org/wiki/Special:ExtensionDistributor/MobileFrontend.

I couldn't find any redlink related function in the MobileFrontend version I use.
Any suggestion how I could sort it out?
Comment 23 Florian 2014-05-27 11:34:01 UTC
You use the version of REL1_22 branch, yes? Then, for now, i can not say, why the redlinks will be removed. The redlink remove function was implemented in April 2014 (in currently form):
https://gerrit.wikimedia.org/r/#/c/126723/
Comment 24 Istvan Bujdoso 2014-05-27 18:49:30 UTC
Yes. I use the version of REL1_22 branch.

Something changes the link to span.
At the end of the link() function (core MediaWiki function, /includes/Linker.php) it is still a link:
<a href="/mediawiki/index.php?title=Test&amp;action=edit&amp;redlink=1" class="new" title="Test (page does not exist)">Test</a>

But the output in the browser is a span:
<span title="Test (page does not exist)" class="new">Test</span>
Comment 25 Florian 2014-05-27 20:01:18 UTC
> But the output in the browser is a span:
This is exactly that, what this function has to do ;)

Look at this change:
https://gerrit.wikimedia.org/r/#/c/83592/

So, i think, the redlinks removal will be in htmlformatter or mobileformatter, sorry, but i can't show atm :/
Comment 26 Istvan Bujdoso 2014-05-28 08:47:07 UTC
I've found it. The doFlattenRedLinks() function in the MobileFormatter.php.

Thank you for your help.
Comment 27 Jon 2014-05-28 19:22:50 UTC
This applies to an older version of MobileFrontend so marking as invalid.

I suggest opening a new bug for a configuration to make it easier for 3rd party users to have red links enabled by default as you're likely to run into this issue again in future when/if you upgrade.
Comment 28 Gerrit Notification Bot 2014-06-16 18:27:32 UTC
Change 135120 merged by jenkins-bot:
Add "wgMFShowRedLinks" and "wgMFShowRedLinksAnon" config

https://gerrit.wikimedia.org/r/135120

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


Navigation
Links