https://bugzilla.wikimedia.org/show_bug.cgi?id=16707

           Summary: Add "rel='next'" link to login page to return to last
                    page.
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: easy, need-review, patch
          Severity: enhancement
          Priority: Normal
         Component: User login/settings
        AssignedTo: [email protected]
        ReportedBy: [email protected]


To enhance the login page I have following proposal which modifies the
'addReturnTo' function, so that modern browsers (like e.g. Opera) hold a 'next'
link ready to make it easier for the user to go back to the page where they
were before login.

The file is '/var/lib/mediawiki/includes/OutputPage.php' the line numbers were
taken from Debian's actual mediawiki version (1.12.0-2lenny1), the
modifications are lines 1171-1180 which replace the now commented out line
number 1181.

--

1169         public function addReturnTo( $title ) {
1170                 global $wgUser;
1171                 $link= $wgUser->getSkin()->makeLinkObj( $title );
1172
1173                 // create a 'next' link for modern browsers
1174                 $link_next = ereg_replace( '<a href="(.*)" .*', '\\1',
$link );
1175                 $this->addLink(
1176                                 array(
1177                                         'rel'   => 'next',
1178                                         'href'  => $link_next ) );
1179
1180                 $link = wfMsg( 'returnto', $link );
1181                 # $link = wfMsg( 'returnto',
$wgUser->getSkin()->makeLinkObj( $title ) );
1182                 $this->addHtml( "<p>{$link}</p>\n" );
1183         }

--

Regards, Jalsti

(As this is my first post here, I just can hope everything is placed correctly
and completely.)


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to