[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm

raeburn raeburn at source.lon-capa.org
Sun Apr 9 22:51:38 EDT 2017


raeburn		Mon Apr 10 02:51:38 2017 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  - Use setLCHost() when setting location.href in go() function when 
    'use_absolute' arg was included in call to loncommon::bodytag().
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.383 loncom/interface/lonhtmlcommon.pm:1.384
--- loncom/interface/lonhtmlcommon.pm:1.383	Wed Mar  8 02:51:08 2017
+++ loncom/interface/lonhtmlcommon.pm	Mon Apr 10 02:51:38 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.383 2017/03/08 02:51:08 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.384 2017/04/10 02:51:38 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3477,7 +3477,8 @@
    if (url!='' && url!= null) {
        currentURL = null;
        currentSymb= null;
-       window.location.href=url;
+       var lcHostname = setLCHost();
+       window.location.href=lcHostname+url;
    }
 }
 




More information about the LON-CAPA-cvs mailing list