Changeset 1255

Show
Ignore:
Timestamp:
07/14/09 23:15:26 (4 years ago)
Author:
tschaub
Message:

Use window.location instead of document.location. The host property includes the port.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/Full.js

    r1204 r1255  
    114114 
    115115            // TODO: configurablize!!!1!!!!!111!!!!!! 
    116             var pathname = document.location.pathname.replace(/\/[^\/]*$/, '/embed.html');  
     116            var pathname = window.location.pathname.replace(/\/[^\/]*$/, '/embed.html');  
    117117            var url =  
    118                 document.location.protocol + "//" + 
    119                 document.location.hostname
     118                window.location.protocol + "//" + 
     119                window.location.host
    120120                pathname + "?" + query; 
    121121