sapcc / juno

Monorepo for the Juno microfrontend framework, microfrontend apps, design system and component library
Apache License 2.0
5 stars 3 forks source link

[Greenhouse][Supernova] Problems when clicking on a link in Supernova that opens in a new tab #403

Closed edda closed 1 month ago

edda commented 10 months ago

Supernova parses alert descriptions and if it finds urls in there it generates an html <a> tag with target="_blank" for it.

There's a new alert for vulnerable images in prod deployments which contains in the description a greenhouse link to doop with the correct filter applied. This URL is parsed and turned into a link as described above.

PROBLEM: When clicking this link two things happen:

  1. The link in the new tab doesn't open the doop app but instead opens on Supernova. However when one navigates to doop manually the correct filter from the link is applied. I believe this is our race condition issue again where URL state and default plugin selection fight and the default plugin selection wins.
  2. The originial tab from which the link was clicked shows only a Loading Spinner, Supernova itself disappears. The same happens if you manually open a new tab and open the url from the alert. Could be some sort of store problem?