We should not be using relative URLs when making HTTP GET requests through RequestBuilder. Their resolution is execution-context-sensitive.
In some browsers, these relative URLs were causing the "Source Code" and "CSS Style" links to return 404 errors.
I've prepended GWT.getModuleBaseURL() to the DST_SOURCE constant to make the URLs for "Source Code" and "CSS Style" absolute.
Review by: jlabanca (TBR)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@4598 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java
index 68f59ec..8a4f96c 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java
@@ -15,6 +15,7 @@
*/
package com.google.gwt.sample.showcase.client;
+import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.Constants;
import com.google.gwt.sample.showcase.client.content.i18n.CwConstantsExample;
import com.google.gwt.sample.showcase.client.content.i18n.CwConstantsWithLookupExample;
@@ -79,7 +80,7 @@
/**
* The path to source code for examples, raw files, and style definitions.
*/
- String DST_SOURCE = "gwtShowcaseSource/";
+ String DST_SOURCE = GWT.getModuleBaseURL() + "gwtShowcaseSource/";
/**
* The destination folder for parsed source code from Showcase examples.