Last modified: 2014-09-08 02:48:16 UTC
redirect.py should not solve double redirects to section links when the target section does not exists. See https://en.wikipedia.org/w/index.php?title=User_talk:Xqt&oldid=624409138#Incorrect_edits_for_Freedom
textlib has function 'does_text_contain_section', and mwpfh has code.get_sections , which is being used in https://gerrit.wikimedia.org/r/#/c/118795/ to detect sections in the page.