diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-04 18:21:03 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-05 14:10:03 +0300 |
commit | e80c00ebd8f2c72f197074c4d1192d702539c8d0 (patch) | |
tree | a955befdc9e7fa65bd80467256b7b1318823657a /WebContent | |
parent | ff4ee18e0f26515cfa818ab9d249932a3bbf0955 (diff) | |
download | vaadin-framework-e80c00ebd8f2c72f197074c4d1192d702539c8d0.tar.gz vaadin-framework-e80c00ebd8f2c72f197074c4d1192d702539c8d0.zip |
Add Page.getLocation() (#9249)
* Send the whole window location, not just fragment, in bootstrap and when the fragment changes
* BrowserDetails now has URI getLocation() instead of String getUriFragment()
* Keep FragmentChangeListeners as-is, should perhaps change to LocationChangeListeners at some point
* Implement Page.getFragment() by means of Page.getLocation()
* Differentiate between no fragment (null) and empty fragment ("") as java.net.URI does
Change-Id: I1da1ea0664304d0c121a57e85d127fe48605e940
Diffstat (limited to 'WebContent')
-rw-r--r-- | WebContent/VAADIN/vaadinBootstrap.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js index fc1de31bc8..3fff0bd829 100644 --- a/WebContent/VAADIN/vaadinBootstrap.js +++ b/WebContent/VAADIN/vaadinBootstrap.js @@ -249,11 +249,9 @@ url += '&vh=' + pe.offsetHeight; } - // Uri fragment - if (location.hash) { - //Remove initial # - url += '&fr=' + encodeURIComponent(location.hash.replace(/^#/, "")); - } + // Location + url += '&loc=' + encodeURIComponent(location.href); + // Window name if (window.name) { url += '&wn=' + encodeURIComponent(window.name); |