Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE 1.2
-
Fix Version/s: BridgeIt 1.0
-
Component/s: Faces
-
Labels:None
-
Environment:ICEmobile, ICEmobile-SX
Description
When ICEmobile-SX returns control to the browser, it is generally required for the browser page to be reloaded or updated via ajax to reflect registration or content upload.
If the page URL already ends with #icemobilesx, this reload does not take place.
If the page URL already ends with #icemobilesx, this reload does not take place.
The fix max use of the history.pushState() function being investigated for back-button support. This has the advantage of removing the #icemobilesx hashtag but does not cause a page reload. The setTimeout ensures that the hashtag is cleared after any other hashchange listeners run, thereby allowing script in the page to detect the return from ICEmobile-SX and perform an ajax update if necessary.
+ setTimeout( function()
{ + var loc = window.location; + history.pushState("", document.title, loc.pathname + loc.search); + }, 1);