Fixes the URL for the hosted.html file when using
the IFrameLinker with noserver hosted mode.

Suggested by: Cameron Braid
Review by: jat


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@4022 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js b/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
index 7051125..5db4e1b 100644
--- a/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
+++ b/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
@@ -295,7 +295,7 @@
         millis:(new Date()).getTime(), 
         type: 'moduleRequested'
       });
-      iframe.contentWindow.location.replace(base + strongName + '.cache.html');
+      iframe.contentWindow.location.replace(base + initialHtml);
     }
   }
 
@@ -351,13 +351,16 @@
   });
 
   var strongName;
+  var initialHtml;
   if (isHostedMode()) {
-    strongName = "hosted.html?__MODULE_FUNC__";
+    strongName = "";
+    initialHtml = "hosted.html?__MODULE_FUNC__";
   } else {
     try {
 // __PERMUTATIONS_BEGIN__
       // Permutation logic
 // __PERMUTATIONS_END__
+      initialHtml = strongName + ".cache.html";
     } catch (e) {
       // intentionally silent on property failure
       return;