opensearch-project / dashboards-query-workbench

The OpenSearch Dashboards Query Workbench enables you to query your OpenSearch data using either SQL or PPL
Apache License 2.0
7 stars 30 forks source link

[navigation] Add default render path when there is basePath #381

Closed SuZhou-Joe closed 2 months ago

SuZhou-Joe commented 2 months ago

Description

As we will make dev tools as a full page modal when new nav toggle is turned on, we will use MemoryRouter to replace HashRouter in our page to avoid modifying the hosted page' hash. And this change will impact search relevance functionality.

And this PR adds a default path when there is no '/' route.

For more details please take a look on the comment: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7938#discussion_r1738383931.

Issues Resolved

[List any issues this PR will resolve]

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

ps48 commented 2 months ago

Can we please test do previously supported flint URLs work as expected?

path={`/${basePath}/:dataSource`}
path={`/${basePath}/accelerate/:dataSource`}
path="/"
path={`/${basePath}`}
TackAdam commented 2 months ago

Implemented by : https://github.com/opensearch-project/dashboards-query-workbench/pull/387 Can be closed.

joshuali925 commented 2 months ago

bug fixed by #387