# server.basePath leads to indefinite loop

**URL:** <https://discuss.elastic.co/t/server-basepath-leads-to-indefinite-loop/242585>\
**Category:** Kibana\
**Created:** [July 25, 2020, 3:09am UTC](https://discuss.elastic.co/t/server-basepath-leads-to-indefinite-loop/242585 "2020-07-25T03:09:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [July 25, 2020, 3:09am UTC](https://discuss.elastic.co/t/server-basepath-leads-to-indefinite-loop/242585/1 "2020-07-25T03:09:38Z")

</div>

Hello. I am using elk stack 7.6.2. When I introduce server.basePath parameter in kibana.yml the browser tends to go in an indefinite loop.

Please advise.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 26, 2020, 10:13pm UTC](https://discuss.elastic.co/t/server-basepath-leads-to-indefinite-loop/242585/2 "2020-07-26T22:13:03Z")

</div>

> [@zaeemmasood](#):
>
> When I introduce server.basePath parameter in kibana.yml the browser tends to go in an indefinite loop.

Hi ,  
I think you are hitting this bug [https://github.com/elastic/kibana/issues/36825](https://github.com/elastic/kibana/issues/36825). We're actively investigating a solution, but in the mean-time if you close your browser and re-open it, or clear your cookies, you should get out of the infinite redirect.  
Logs will be helpful

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [July 27, 2020, 9:37pm UTC](https://discuss.elastic.co/t/server-basepath-leads-to-indefinite-loop/242585/3 "2020-07-27T21:37:15Z")

</div>

Thanks. Looks like the bug is marked closed. So is clearing browser cookies or closing / reopening browser the only option to make new context root work?

Regards

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [August 14, 2020, 2:10pm UTC](https://discuss.elastic.co/t/server-basepath-leads-to-indefinite-loop/242585/4 "2020-08-14T14:10:43Z")

</div>

Thanks. It was fixed by adding server.basePath and server.rewriteBasePath values

---

<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:** [September 11, 2020, 2:10pm UTC](https://discuss.elastic.co/t/server-basepath-leads-to-indefinite-loop/242585/5 "2020-09-11T14:10:50Z")

</div>

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