diff --git a/src/js_tests/wirecloud/ui/WorkspaceViewSpec.js b/src/js_tests/wirecloud/ui/WorkspaceViewSpec.js index 50a87f812..3c95525e2 100644 --- a/src/js_tests/wirecloud/ui/WorkspaceViewSpec.js +++ b/src/js_tests/wirecloud/ui/WorkspaceViewSpec.js @@ -1015,10 +1015,13 @@ view.onHistoryChange({ workspace_owner: "user", - workspace_name: "dashboard" + workspace_name: "dashboard", + params: { + test: "test" + } }); - expect(Wirecloud.changeActiveWorkspace).toHaveBeenCalledWith(workspace, {initialtab: undefined, history: 'ignore'}); + expect(Wirecloud.changeActiveWorkspace).toHaveBeenCalledWith(workspace, {initialtab: undefined, history: 'ignore', params: {test: "test"}}); }); it("should handle tab changes", () => { diff --git a/src/wirecloud/platform/static/js/wirecloud/ui/MarketplaceView.js b/src/wirecloud/platform/static/js/wirecloud/ui/MarketplaceView.js index 41f6964b8..51af1f6f2 100644 --- a/src/wirecloud/platform/static/js/wirecloud/ui/MarketplaceView.js +++ b/src/wirecloud/platform/static/js/wirecloud/ui/MarketplaceView.js @@ -192,7 +192,8 @@ const data = { workspace_owner: currentState.workspace_owner, workspace_name: currentState.workspace_name, - view: 'marketplace' + view: 'marketplace', + params: currentState.params }; if (this.loading === false && this.error === false && this.alternatives.getCurrentAlternative() !== this.emptyAlternative) { diff --git a/src/wirecloud/platform/static/js/wirecloud/ui/MyResourcesView.js b/src/wirecloud/platform/static/js/wirecloud/ui/MyResourcesView.js index 96abac576..d15cb5ccd 100644 --- a/src/wirecloud/platform/static/js/wirecloud/ui/MyResourcesView.js +++ b/src/wirecloud/platform/static/js/wirecloud/ui/MyResourcesView.js @@ -102,7 +102,8 @@ workspace_owner: currentState.workspace_owner, workspace_name: currentState.workspace_name, view: 'myresources', - subview: 'search' + subview: 'search', + params: currentState.params }; const subview = this.alternatives.getCurrentAlternative(); diff --git a/src/wirecloud/platform/static/js/wirecloud/ui/WorkspaceView.js b/src/wirecloud/platform/static/js/wirecloud/ui/WorkspaceView.js index 81ee816a3..374786adb 100644 --- a/src/wirecloud/platform/static/js/wirecloud/ui/WorkspaceView.js +++ b/src/wirecloud/platform/static/js/wirecloud/ui/WorkspaceView.js @@ -541,7 +541,7 @@ this.layout.slideOut().content.clear().appendChild(alert_msg); Wirecloud.dispatchEvent('viewcontextchanged'); } else if (Wirecloud.activeWorkspace == null || (nextWorkspace.id !== Wirecloud.activeWorkspace.id)) { - Wirecloud.changeActiveWorkspace(nextWorkspace, {initialtab: newState.tab, history: 'ignore'}); + Wirecloud.changeActiveWorkspace(nextWorkspace, {initialtab: newState.tab, history: 'ignore', params: newState.params}); } else if (newState.tab != null) { target_tab = this.findTab(newState.tab_id); this.notebook.goToTab(target_tab);