summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/vaadinBootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/VAADIN/vaadinBootstrap.js')
-rw-r--r--WebContent/VAADIN/vaadinBootstrap.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js
index 6561e1ff79..f8eedb8fd1 100644
--- a/WebContent/VAADIN/vaadinBootstrap.js
+++ b/WebContent/VAADIN/vaadinBootstrap.js
@@ -82,7 +82,15 @@
var fetchRootConfig = function() {
log('Fetching root config');
- var url = getConfig('browserDetailsUrl') || getConfig('appUri');
+ var url = getConfig('browserDetailsUrl');
+ if (!url) {
+ // No special url defined, use the default URL
+ url = getConfig('appUri');
+ // Add a slash to the end, because ApplicationConiguration.loadFromDOM does so...
+ if (url.length == 0 || url.substr(url.length-1) !== "/") {
+ url += '/';
+ }
+ }
// Root id
url += ((/\?/).test(url) ? "&" : "?") + "browserDetails";
url += '&rootId=' + getConfig('rootId');