--- rat/lonpageflip.pm 2003/03/08 01:39:29 1.37 +++ rat/lonpageflip.pm 2003/08/15 14:14:43 1.39 @@ -2,7 +2,7 @@ # # Page flip handler # -# $Id: lonpageflip.pm,v 1.37 2003/03/08 01:39:29 www Exp $ +# $Id: lonpageflip.pm,v 1.39 2003/08/15 14:14:43 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -189,7 +189,7 @@ sub handler { if (($ENV{'form.postdata'})&&($ENV{'request.course.fn'})) { $ENV{'form.postdata'}=~/(\w+)\:(.*)/; my $direction=$1; - my $currenturl=$2; + my $currenturl=&Apache::lonnet::unescape($2); if ($direction eq 'return') { # -------------------------------------------------------- Return to last known my $last; @@ -311,6 +311,12 @@ sub handler { # ============================================== Do not return before this line if ($redirecturl) { # ----------------------------------------------------- There is a URL to go to + if ($direction eq 'forward') { + &Apache::lonnet::linklog($currenturl,$redirecturl); + } + if ($direction eq 'back') { + &Apache::lonnet::linklog($redirecturl,$currenturl); + } # ------------------------------------------------- Check for critical messages if ((time-$ENV{'user.criticalcheck.time'})>300) { my @what=&Apache::lonnet::dump