Umb-router-slot i modal
# package-development
m
I have a element (lets call it ModalElement) with a
umb-router-slot
inside. I'm using a routed modal (UmbModalRouteRegistrationController) to get a unique route to the modal. The route to the modal always works fine and the nested umb-router-slot loads the right route inside the modal in certain cases and others not. It works when I'm opening the modal from the "host element" of the UmbModalRouteRegistrationController and when I reload the page with the full route URL in the browser. But when I navigate (using a-links) from some other part of the backoffice to my modal route, the modal is shown but the nested umb-router-slot does not load any route. Anyone had similar issues? I did a proof of concept with where I registered everything as workspaces and used the "Umb.Modal.Workspace", in that scenario it works - but I can't understand why it works with that modal and not with my custom one. Anyone that have played with this or that might have any pointers?
10 Views