[BUG] Discover routing without query params does not route correctly #5774
Labels
bug
Something isn't working
data explorer
Issues related to the Data Explorer project
discover
for discover reinvent
Describe the bug
Wen visiting the single document or context pages, if the url does not contain query parameters, the routing breaks. e.g.
The issue is with how discover maps the legacy URL's to the new data explorer route. The url parameters after the
?
are optional, but the regex currently requires the?
to be present to route the URL correctly.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Routes
http://localhost:5601/app/discover#/context/<doc-id>/<index-id>
correctlyOpenSearch Version
Please list the version of OpenSearch being used.
Dashboards Version
Please list the version of OpenSearch Dashboards being used.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: