ROR Kbn plugin doesn't consider selected Kibana space in nextUrl


I have shared a link like the one below with a user.[email protected]

When the user accesses it, they are redirected to ROR login page. But the nextUrl does not consider the kibana space and gives the login url as.[email protected]

This causes the user to select the space again and click on additional links to navigate to original link. This is counter intuitive as we can no longer share any direct link.

I think ROR Kibana should be able to properly redirect to the direct link as part of the nextURL to redirect after login.