Last modified: 2009-09-29 17:22:14 UTC
When viewing a diff, you are not required to pass the “title” parameter at all, or you can pass any garbage in it (e.g. http://test.wikipedia.org/w/index.php?title=Nonexisting_page_title&diff=62541). However, the title is not ignored completely – it is used as the real page title by the parser rendering the new version displayed under the diff. That means that (see the linked URL): 1. The tabs above lead to the page given in ?title= (or to the Main Page, if no title has been given), not to the displayed page. They might be red, if that page does not exist. 2. Any subpage links referenced in the page text are broken: they lead to the respective subpage of the page given in ?title=, not to the subpages of the displayed page. An ugly “fix” is attached, I am not sure if something like that should be the proper solution; it is more like a pointer to the problem.
Created attachment 5193 [details] An ugly "fix" showing the problem cause
Fixed in r45458
This code is illegible; it's not very clear what it's doing or why. Please redo with clearer code; comment if necessary. Reverted in r45486
...done in r45500
*** Bug 14238 has been marked as a duplicate of this bug. ***