-
Type:
Bug
-
Resolution: Answered
-
Priority:
Low
-
Component/s: Forge - App UI Web
-
Minor
Issue Summary:
When using the open method from the Custom UI Bridge Router to link to external URLs, a JavaScript error occurs when the user clicks the "Cancel" button on the confirmation popup.
Steps to Reproduce
- Implement the open method from the Custom UI Bridge Router as described in the documentation.
<button onClick={() => router.open("https://www.google.com")}>click here</button>
- Trigger the method to open an external URL, such as a support page.
- When the confirmation popup appears (refer to popup.png), click the "Cancel" button.
Expected Results
The operation should be gracefully cancelled without any errors, and the user should remain on the current page without further actions.
Actual Results
A JavaScript error is thrown, preventing the cancellation from being handled properly.
at he.error (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:133263) at Object.<anonymous> (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:141036) at JSON.parse (<anonymous>) at Se.o (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:140895) at Se (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:141048) at Me.s.on (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:145708) at Me (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:145845) at https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:151831 at e.try (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:124315) at https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:151628
Workaround
Required, if there is no workaround please state:
Currently there is no known workaround for this behavior. A workaround will be added here when available