(bug 16707) Add "rel='next'" link to login page to return to last page
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 23 Dec 2008 21:30:40 +0000 (21:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 23 Dec 2008 21:30:40 +0000 (21:30 +0000)
includes/OutputPage.php

index dcd5c30..f8dba71 100644 (file)
@@ -1383,6 +1383,7 @@ class OutputPage {
         */
        public function addReturnTo( $title ) {
                global $wgUser;
+               $this->addLink( array( 'rel' => 'next', 'href' => $title->getFullUrl() ) );
                $link = wfMsg( 'returnto', $wgUser->getSkin()->makeLinkObj( $title ) );
                $this->addHTML( "<p>{$link}</p>\n" );
        }