--- loncom/interface/lonhtmlcommon.pm 2011/01/18 19:52:46 1.288 +++ loncom/interface/lonhtmlcommon.pm 2011/01/18 22:59:06 1.289 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.288 2011/01/18 19:52:46 www Exp $ +# $Id: lonhtmlcommon.pm,v 1.289 2011/01/18 22:59:06 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1429,6 +1429,11 @@ sub htmlareabrowser { # sub show_return_link { + + unless ($env{'request.course.id'}) { return 0; } + if ($env{'request.noversionuri'}=~m{^/priv/} || + $env{'request.uri'}=~m{^/~}) { return 1; } + if (($env{'request.noversionuri'} =~ m{^/adm/(viewclasslist|navmaps)($|\?)}) || ($env{'request.noversionuri'} =~ m{^/adm/.*/aboutme($|\?)})) { 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.