https://bugzilla.wikimedia.org/show_bug.cgi?id=73137
Bug ID: 73137 Summary: Wikia family nicepath is incorrect, but is functional Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: trivial Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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
https://bugzilla.wikimedia.org/show_bug.cgi?id=73137
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mwgrunny@gmail.com
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- Note that I have a patch pending re Wikia family at https://gerrit.wikimedia.org/r/#/c/171616/ , and more to come
https://bugzilla.wikimedia.org/show_bug.cgi?id=73137
--- Comment #2 from Grunny mwgrunny@gmail.com --- (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/.
pywikipedia-bugs@lists.wikimedia.org