Skip to content

Commit 4603037

Browse files
1 parent 01e8d45 commit 4603037

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/webapp/Component.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
5252
z2ui5.oController.ViewDestroy();
5353
z2ui5.oResponse = event.state.response;
5454
z2ui5.oController.displayView(event.state.view, event.state.model);
55+
}else{
56+
let urlObj = new URL(window.location.href);
57+
urlObj.searchParams.delete("z2ui5-xapp-state");
58+
history.replaceState(null, null, urlObj.pathname + urlObj.search + urlObj.hash);
5559
}
5660
});
5761
},

0 commit comments

Comments
 (0)