-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Description
In Zowe v3, navigating within the application triggers a browser “Leave site?” popup due to a URL change between plugins.
Observed Behavior
The application initially loads from:
https://z2pub.pok.stglabs.ibm.com:14522/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/
When hovering over or clicking a file, the URL changes to:
https://z2pub.pok.stglabs.ibm.com:14522/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.ivydesktop/web/
Since the plugin segment changes from:
org.zowe.zlux.bootstrap → org.zowe.zlux.ivydesktop
the browser interprets this as navigation to a different location and displays a “leave site” popup.
This behavior does not occur in Zowe v2.
Root Cause Investigation
In v3 (staging/virtual-desktop/src/desktop.ts), the following statement is present:
baseUrl.setAttribute("href", ZoweZLUX?.uriBroker.desktopRootUri());
We tested removing this statement, and the issue no longer occurs.
Navigation works correctly and the browser popup does not appear.
This suggests that explicitly setting the base href to org.zowe.zlux.ivydesktop is causing the URL switch and triggering the browser behavior.
In v2, no such explicit href assignment exists.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status