--- loncom/publisher/Attic/lonconstruct.pm 2008/11/19 19:15:02 1.35 +++ loncom/publisher/Attic/lonconstruct.pm 2010/04/12 15:05:51 1.37 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Page Wrapper for Construction # -# $Id: lonconstruct.pm,v 1.35 2008/11/19 19:15:02 jms Exp $ +# $Id: lonconstruct.pm,v 1.37 2010/04/12 15:05:51 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -117,37 +117,12 @@ sub handler { $lowerframe.='?editmode=Edit&problemmode=edit'; } -# -# Checking to see if we should display the topframe -# - my $toprows = 0; - my $topsrc = ''; - if ($env{'environment.remote'} ne 'off') { - $toprows = '110'; - $topsrc = '/adm/localize/adm/publisher.html'; - } - - my $js=qq| - - |; - - my $start_page= - &Apache::loncommon::start_page('Construction Space',$js, - {'frameset' => 1, - 'add_entries' => { - 'rows' => "$toprows,*", - 'border' => "0",}}); - my $end_page= - &Apache::loncommon::end_page({'frameset' => 1}); - - $r->print(< - -$end_page -ENDPAGE + # when the remote control existed we used to force the + # pages of construction space into a frameset. + # without remote control, we can elimnate this frameset + # and redirect to the url of the content frame. + # This keeps all URLs intact. + $r->internal_redirect($lowerframe); return OK; } 1;