print "renaming " . $GivenPage . " to " . $GivenNewName ."<BR>"; &RenamePage($GivenPage, $GivenNewName, $doRC, $doText);
With this:
print "renaming " . $GivenPage . " to " . GetPageLink($GivenNewName) ."<BR>"; &RenamePage($GivenPage, $GivenNewName, $doRC, $doText);
So you can go direct to the renamed page.
This one passes the name of the page that the "Edit/Rename pages" link was followed from to the resulting form:
$result .= " | " . &ScriptLink("action=editlinks&oid=$id", T("Edit/Rename pages")); # pass the old name
my $oid = &GetParam("oid", ""); # catch the passed name print &GetTextArea('commandlist', "$oid", 12, 50); # put it in the textarea
Improved:
This replaces the "Edit/Rename pages" link with "Rename/Links/Delete" where each word is linked to insert the appropriate markup for each function.
$result .= " | " . &ScriptLink("action=editlinks&oid==$id=", T("Rename")) . '/' . &ScriptLink("action=editlinks&oid=|$id|", T("Links")) . '/' . &ScriptLink("action=editlinks&oid=!$id", T("Delete"));