Can't get nextUrl to work

Hi All,

I’ve followed the instructions in the Kibana docs to set up the nextUrl to redirect after authenticating with jwt.

My request URL:<>

I see that I get a 302 response with a redirect to / (header location: /) and a rorCookie.

Then the next request to /, I don’t see any mention of nextUrl but instead another redirect to /spaces/enter, then from there another 302 to /app/kibana, not the nextUrl I instructed.

How can I get this to work so I can embed an iframe in my application?

I’m running ES & Kibana 7.5.1. Thanks.

Hi @jgorlin,
If you want people to land always in the same app in Kibana, you should directly use:


Default: “home” The default application to load.

The nextUrl should work though. I will add a task in Jira to have a look at this, and notify this thread.

Thanks for the help, Simone.

I’m actually trying to redirect directly to embedded dashboards inside iframes, my example maybe wasn’t the best one. Can you please try nextUrl and make sure there is no regression here in the latest RoR code or in ES/Kibana 7.5.1?

I can help troubleshoot as well if you can give me some pointers on where to look.

Hi @jgorlin, I found the root cause. Will send you the build ASAP.

Please try this one:

For google: this fix is available in ROR 1.19.0 onwards.

Thanks for getting to the bottom of this. This plugin you have linked to is only ~7MB. The other one I installed successfully was closer to 60MB. What do I need to do to get this one to install?

[email protected]:/home/gorlinj# /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///home/gorlinj/
-> Downloading file:///home/gorlinj/
[=================================================] 100%  
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-8597628765548148073/

@jgorlin the fix is in the Enterprise plugin for Kibana, so it’s a Kibana plugin, not Elasticsearch.

Your fix works! Thanks for hunting it down and resolving it quickly. Looking forward to moving into production once this fix is officially released.

1 Like

Excellent, we will release 1.19.0 in a matter of days :slight_smile: