Last modified: 2011-09-23 02:27:06 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 T30308, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28308 - Redirect from mobile to non-mobile Wikipedia fails if coming from a non-canonical page title
Redirect from mobile to non-mobile Wikipedia fails if coming from a non-canon...
Status: RESOLVED FIXED
Product: Wikimedia Mobile
Classification: Unclassified
Retired (Ruby) Gateway (Other open bugs)
.5
All All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://de.m.wikipedia.org/wiki?search...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-29 18:32 UTC by Bergi
Modified: 2011-09-23 02:27 UTC (History)
3 users (show)

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


Attachments

Description Bergi 2011-03-29 18:32:08 UTC
When the search found an article to show, the redirect to the classic Wikipedia will go to the search phrase instead of the lemma. This is annoying, because the classic Wikipedia will tell you the article you've just looked at wouldn't exist.
The exmample url should redirect to http://de.wikipedia.org/wiki/Verbotene_Liebe instead of http://de.wikipedia.org/w/mobileRedirect.php?to=http%3A%2F%2Fde.wikipedia.org%2Fwiki%2Fverbotene%20liebe.
Comment 1 Hampton Catlin 2011-03-29 23:17:44 UTC
The reason for the mobileRedirect.php file is all about setting cookies (so that it doesn't
redirect you back again!) 

It seems like its a capitalization issue. Let me look into it!
Comment 2 Bawolff (Brian Wolff) 2011-03-30 00:28:29 UTC
Note, if you just made it redirect to special:search/<page name>, this would automatically sort out all the capitalization issues.
Comment 3 Hampton Catlin 2011-03-30 11:34:18 UTC
Can you give me a more exact example? Does this work on every wiki language?

Sorry, not a mediawiki developer. I was just translating the exact URLs over.
Comment 4 Bawolff (Brian Wolff) 2011-03-30 19:52:22 UTC
Basically if you go to http://de.wikipedia.org/wiki/special:search/verbotene_liebe Mediawiki will first check to see if there is a page named verbotene_liebe or something with similar capitalization (Such as the actual aforementioned Verbotene_Liebe page with the capital L). If there is such a page, it will give a 302 redirect to the corresponding page with the correct capitalization, otherwise it will show the search results of searching for that. (Basically it works like the go button in the search bar on mediawiki).

This will work for all language Wikipedia's. (But it will only look for pages within that language. http://sco.wikipedia.org/wiki/special:search/verbotene_liebe is not going to go to the page on DE). As a minor note, on non-english languages it will first redirect you to the canonical special page name. For example on DE the redirection chain is:

#Initial request: http://de.wikipedia.org/wiki/special:search/verbotene_liebe
#301 Moved Permenantly to: http://de.wikipedia.org/wiki/Spezial:Suche/verbotene_liebe
#302 Moved Temporarily to: http://de.wikipedia.org/wiki/Verbotene_Liebe
Comment 5 Tomasz Finc 2011-09-23 02:27:06 UTC
This should now be fixed. Pleas re-open if this is still an issue.

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


Navigation
Links