# ScopedHistory instance has fell out of navigation scope for basePath?

**URL:** <https://forum.opensearch.org/t/scopedhistory-instance-has-fell-out-of-navigation-scope-for-basepath/23107>\
**Category:** OpenSearch Dashboards\
**Tags:** troubleshoot\
**Created:** [January 15, 2025, 4:54pm UTC](https://forum.opensearch.org/t/scopedhistory-instance-has-fell-out-of-navigation-scope-for-basepath/23107 "2025-01-15T16:54:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaimie.livingston](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jaimie.livingston](https://forum.opensearch.org/u/jaimie.livingston)\
**Post date:** [January 15, 2025, 4:54pm UTC](https://forum.opensearch.org/t/scopedhistory-instance-has-fell-out-of-navigation-scope-for-basepath/23107/1 "2025-01-15T16:54:32Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch-Dashboards 2.18  
Opensearch 2.18

**Describe the issue** :  
This error occasionally arises on Dashboards:

```auto
Error restoring state from URL
ScopedHistory instance has fell out of navigation scope for basePath: /app/data-explorer

```

Here’s the full error (server address is obfuscated)

```auto
Error: ScopedHistory instance has fell out of navigation scope for basePath: /app/data-explorer
    at ScopedHistory.verifyActive (https://serveraddress/opensrch/8053/bundles/core/core.entry.js:15:211845)
    at get location (https://serveraddress/opensrch/8053/bundles/core/core.entry.js:15:211179)
    at getCurrentUrl (https://serveraddress/opensrch/8053/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:120044)
    at getPendingUrl (https://serveraddress/opensrch/8053/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:123979)
    at Object.getPendingUrl (https://serveraddress/opensrch/8053/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:124486)
    at Object.get (https://serveraddress/opensrch/8053/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:129665)
    at updateStorage (https://serveraddress/opensrch/8053/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:132541)
    at t._tapNext (https://serveraddress/opensrch/8053/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:132876)
    at t._next (https://serveraddress/opensrch/8053/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:503:134587)
    at t.next (https://serveraddress/opensrch/8053/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:21:40189)

```

Can anyone explain what the error actually means?

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [January 16, 2025, 10:49am UTC](https://forum.opensearch.org/t/scopedhistory-instance-has-fell-out-of-navigation-scope-for-basepath/23107/2 "2025-01-16T10:49:44Z")

</div>

Hi @jaimie.livingston,

What do you have set as your `server.basePath` in `opensearch_dashboards.yml` (if anything)?  
See more info here (lines 15-17) [OpenSearch-Dashboards/config/opensearch\_dashboards.yml at main · opensearch-project/OpenSearch-Dashboards · GitHub](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/config/opensearch_dashboards.yml)

Is there a reverse proxy on your setup?

Best,  
mj

---

<div class="post-metadata">

**Author:** ![jaimie.livingston](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jaimie.livingston](https://forum.opensearch.org/u/jaimie.livingston)\
**Post date:** [January 16, 2025, 2:01pm UTC](https://forum.opensearch.org/t/scopedhistory-instance-has-fell-out-of-navigation-scope-for-basepath/23107/3 "2025-01-16T14:01:35Z")

</div>

Here is the config lines from opensearch-dashboards.yml

`server.basePath: "/opensrch"`  
and  
`server.rewriteBasePath: true`

The system is accessed both directly and via a ha-proxy loadbalancer.  
The dashboards server listens and responds on https.

The proxy address is in the form `https://intranetfqdn/opensrch/...`

The direct url is `https://dashboardssrvr/opensrch/...`

Thanks,

Jaimie

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [January 23, 2025, 10:58am UTC](https://forum.opensearch.org/t/scopedhistory-instance-has-fell-out-of-navigation-scope-for-basepath/23107/4 "2025-01-23T10:58:14Z")

</div>

Is there a specific action that causes the error, such as switching the query language on the Discover page or switching between Spaces, etc,…?

Best,  
mj
