Last modified: 2014-11-08 15:48:02 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 T75137, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73137 - Wikia family nicepath is incorrect, but is functional
Wikia family nicepath is incorrect, but is functional
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized trivial
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-07 15:32 UTC by John Mark Vandenberg
Modified: 2014-11-08 15:48 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-11-07 15:32:27 UTC
All of the Wikia families nicepath() values are incorrect for some of their sites.

$ python pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> s = pywikibot.Site('en', 'lyricswiki')
>>> s.nicepath()
'/wiki/'

The same occurs for families wikia and wowwiki.

However the nicepath should be ''

http://lyrics.wikia.com/Category:Artists_A

Likewise the main Wikia and main WOW sites do not have a /wiki/ prefix

http://www.wikia.com/Main_Page

http://www.wowwiki.com/Portal:Main

However Wikia has a redirect on the server from /wiki/ to / for those sites.

However the /wiki/ is needed for some sites.

http://cs.wow.wikia.com/wiki/Hlavn%C3%AD_strana  works

But http://cs.wow.wikia.com/Hlavn%C3%AD_strana redirects to http://cs.wow.wikia.com/wiki/Speci%C3%A1ln%C3%AD:Our

So keeping the nicepath as /wiki/ is necessary, and we have to hope Wikia has redirects in place for all wikis where the wiki nice titles are not located at /wiki/Foo
Comment 1 John Mark Vandenberg 2014-11-07 15:34:02 UTC
Note that I have a patch pending re Wikia family at https://gerrit.wikimedia.org/r/#/c/171616/ , and more to come
Comment 2 Grunny 2014-11-08 15:48:02 UTC
(In reply to John Mark Vandenberg from comment #0)
> 
> However Wikia has a redirect on the server from /wiki/ to / for those sites.
> 
> However the /wiki/ is needed for some sites.
> 
> http://cs.wow.wikia.com/wiki/Hlavn%C3%AD_strana  works
> 
> But http://cs.wow.wikia.com/Hlavn%C3%AD_strana redirects to
> http://cs.wow.wikia.com/wiki/Speci%C3%A1ln%C3%AD:Our
> 
> So keeping the nicepath as /wiki/ is necessary, and we have to hope Wikia
> has redirects in place for all wikis where the wiki nice titles are not
> located at /wiki/Foo

Yep, we do. There are only about 26 or so wikis on Wikia that use short URLs without the /wiki/, the rest all use the standard /wiki/$1 article path. All those that do have short URLs have redirects from /wiki/.

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


Navigation
Links