# Auto redirect in the URL?

**URL:** <https://discuss.elastic.co/t/auto-redirect-in-the-url/183793>\
**Category:** Kibana\
**Created:** [May 31, 2019, 9:36pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793 "2019-05-31T21:36:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![meiyuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meiyuan/32/44468_2.png) [@meiyuan](https://discuss.elastic.co/u/meiyuan)\
**Post date:** [May 31, 2019, 9:36pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/1 "2019-05-31T21:36:39Z")

</div>

I noticed the kibana url was redirected to /app/kibana.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/4/54562fb2a3a5afc0070625590347e1405ec7284f.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4cc47e5681480b7eb5bd1d4378fcc2ab23a953f6.png)

Is that a default configuration because I couldn't find where to change it?

Thank you.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 31, 2019, 10:02pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/2 "2019-05-31T22:02:14Z")

</div>

Hey @meiyuan this can be changed using `server.defaultRoute` per [https://www.elastic.co/guide/en/kibana/current/settings.html](https://www.elastic.co/guide/en/kibana/current/settings.html)

---

<div class="post-metadata">

**Author:** ![meiyuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meiyuan/32/44468_2.png) [@meiyuan](https://discuss.elastic.co/u/meiyuan)\
**Post date:** [May 31, 2019, 10:23pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/3 "2019-05-31T22:23:06Z")

</div>

Thank you for the quick response!  
My google search failed me completely. 🙂

I have another observation that want to confirm.

I noticed I didn't see the intermediate 302 response code in our old version Elasticsearch/kibana cluster.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d847f00e0681ad21472013885723fa4ce9bfe87c.png)

Thank you again!

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 31, 2019, 10:46pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/4 "2019-05-31T22:46:10Z")

</div>

Hey @meiyuan, I'm not aware of any recent changes for this behavior. Which version were you previously using, and is this a GET request for the very root `/` of Kibana?

---

<div class="post-metadata">

**Author:** ![meiyuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meiyuan/32/44468_2.png) [@meiyuan](https://discuss.elastic.co/u/meiyuan)\
**Post date:** [June 3, 2019, 3:37pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/5 "2019-06-03T15:37:49Z")

</div>

The previous version was 5.2.  
The latest version we are using is 7.1.  
And yes, both GET requests are pointed to the root, something like this: ([https://xxx.xxx.xxx.com](https://xxx.xxx.xxx.com))

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/89ae253a871c24278f7bf1adfb9f61d31b4d2d20.png)  
Thank you.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [June 3, 2019, 3:57pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/6 "2019-06-03T15:57:34Z")

</div>

In 5.2, the redirect was happening client-side instead of using a `302` from the root `/` per [https://github.com/elastic/kibana/blob/6413ff0e0138248cfbd902c51c4e8e32a2b9f07a/src/server/http/index.js#L89-L91](https://github.com/elastic/kibana/blob/6413ff0e0138248cfbd902c51c4e8e32a2b9f07a/src/server/http/index.js#L89-L91)

---

<div class="post-metadata">

**Author:** ![meiyuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meiyuan/32/44468_2.png) [@meiyuan](https://discuss.elastic.co/u/meiyuan)\
**Post date:** [June 3, 2019, 3:59pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/7 "2019-06-03T15:59:51Z")

</div>

Understood!  
Thank you again for all your help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 1, 2019, 3:59pm UTC](https://discuss.elastic.co/t/auto-redirect-in-the-url/183793/8 "2019-07-01T15:59:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
