From 6d24ba6e2985d4e0ef16e26bfc9c50553185abf6 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 1 Dec 2016 11:20:25 -0700 Subject: [PATCH] Handle re-loading an app with the URL query parameters so it actually gets reloaded, since its internal state may have changed since the initial load --- api/js/framework/fw_base.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/js/framework/fw_base.js b/api/js/framework/fw_base.js index bcc7b19a55..53031ed2c8 100644 --- a/api/js/framework/fw_base.js +++ b/api/js/framework/fw_base.js @@ -170,6 +170,14 @@ var fw_base = (function(){ "use strict"; return Class.extend( { _url = _app.indexUrl; } + // If there are query parameters and URL is the same, don't just refresh + // because the app's state may have changed since last time + else if (_app.browser != null && _url == _app.browser.currentLocation + && !_url.match(/menuaction=[^&]+&ajax=true/)) + { + // Reset current so new url loads fully + _app.browser.currentLocation = _app.indexUrl; + } else if (_app.browser != null && // check if app has its own linkHandler !(this.applications[_app.appName].app_refresh) &&