jayvdb created this task. jayvdb added a subscriber: jayvdb. jayvdb added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION When a page contains a redirect to another wiki , and `site.pagebacklinks` is called with `filterRedirects=False`: `InterwikiRedirectPage` is raised. https://en.wikipedia.org/w/index.php?title=User:Gdominik100&diff=prev&oldid=695704474 https://travis-ci.org/jayvdb/pywikibot-core/jobs/97539420#L3534 ``` ERROR: testLinkMethods (tests.site_tests.TestSiteGenerators) Test site methods for getting links to and from a page. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/jayvdb/pywikibot-core/tests/site_tests.py", line 447, in testLinkMethods filterRedirects=False)) File "/home/travis/build/jayvdb/pywikibot-core/pywikibot/site.py", line 3377, in pagebacklinks if redir.getRedirectTarget() == page: File "/home/travis/build/jayvdb/pywikibot-core/pywikibot/page.py", line 1491, in getRedirectTarget return self.site.getredirtarget(self) File "/home/travis/build/jayvdb/pywikibot-core/pywikibot/site.py", line 3044, in getredirtarget raise InterwikiRedirectPage(page, target) InterwikiRedirectPage: Page redirects to a page on another Site. Page: [[en:User:Gdominik100]] Target page: [[pl:Wikipedysta:Gdominik100]] on wikipedia:pl. ``` TASK DETAIL https://phabricator.wikimedia.org/T121833 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Aklapper, pywikibot-bugs-list, jayvdb _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
