Hi, You shouldn't modify the contents of the ParserOutput object from any OutputPage related hook, as MediaWiki's cache system won't take the new version into account correctly. Instead you should use a hook called from the parser. For your use case I would suggest the ParserAfterParse.
So try changing that hook to use ParserAfterParse instead of OutputPageParserOutput (The first argument to ParserAfterParse is a Parser object, call $parser->getOutput() to get the appropriate ParserOutput object, and then do the exact same thing as before, except delete the stuff about LinksUpdate, since MW will handle LinksUpdate itself). Hope that helps -- Brian On Thu, Jan 5, 2017 at 11:48 PM, Victor Porton <por...@narod.ru> wrote: > My extension does add additional links (which it is created to render > in addition to the normal [[...]] links) to the pagelinks table for the > edited page every even edit and erroneously removes them back every odd > edit. > > Please help to debug this silly behavior: > > https://gerrit.wikimedia.org/r/#/c/330816/1 is the patch which half- > works. > > My extension: > https://www.mediawiki.org/wiki/Extension:NamespacePopups > > It uses my another extension: > https://www.mediawiki.org/wiki/Extension:PagePopups > > This is very important for me. > > Well, maybe some day we'll use these extensions in Wikipedia, who > knows. > > _______________________________________________ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l