ScopedHistory instance has fell out of navigation scope for basePath?

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

Describe the issue:
This error occasionally arises on Dashboards:

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)

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:

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

Is there a reverse proxy on your setup?

Best,
mj

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

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