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

hi,

I have shared a link like the one below with a user.
https://abc.mydomain.com:11201/s/myspace2/app/kibana#/[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.
https://abc.mydomain.com:11201/login?nextUrl=/app/kibana#/[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.

Thanks!