-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PROPOSAL] Support legacy basePath to re-direct to new basePath #907
Comments
Reflecting now I actually don't think this is related to #665. It might be worth to close this issue. This problem comes from migrating |
Modify to proposal? to support if people want to support re-route from an old path to a new path. |
It is not clear to me what does reproduce steps mean? what does what's the config settings for 6.8, what is the url try to access, and what is expected? The redirect requirement is also ambitious to me, do we expect multiple 301 http redirect, or we URL rewrite is more close to what expected? |
Domain probably shouldn't have been mentioned. Say one user had a version of Kibana and they defined the Given that So the suggestion here is define a new config that accepts a legacy config so that the url forwarder src file can forward users from the legacy base url to the current url if the legacy base url is defined. |
Thanks @kavilla for the explanation, it clear all my doubt 👍 |
Root CauseThis issue actually happened when user created permalink in the 6.x ~7.8, and upgrade domain from (6.x ~ 7.8) to OSD 1.0, 1.1, 1.2, the permalink was writing to index url element with /app/kibana#/visualize/, it caused the trouble for rendering in the OSD1.0, 1.1, 1.2, the link will be broken as "application was not found."
FixesThe fixes already merged in OSD1.3, it will handle the forwarding from /app/kibana#/visualize/ to /app/visualize#/. Verified the fixes in the OSD1.3, the forwarding works fine. |
EDIT: this description was updated to avoid confusion.
Describe the feature
Say one user had a version of Kibana and they defined the
server.basePath: /legacyApp
, this will start up the application aslocalhost:5601/legacyApp
. Any saved links will be saved into the system index aslocalhost:5601/legacyApp/viz
or any if anyone bookmarkedlocalhost:5601/legacyApp
. If any service decided to migrate from the legacy application to OpenSearch Dashboards and decided to changeserver.basePath: /currentApp
, then the application will start up aslocalhost:5601/currentApp
. This then means the linklocalhost:5601/legacyApp/viz
or bookmarks will fail.Given that
server.basePath
can be anything that users define, it could beserver.basePath: /foobar12345
, this will start up the application aslocalhost:5601/foobar12345
, we can't create a hardcode string to redirect (as suggested in the original issue here:/_plugin/kibana
to/_dashboards
).So the suggestion here is define a new config that accepts a legacy config so that the url forwarder src file can forward users from the legacy base url to the current url if the legacy base url is defined.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Dashboards should work fine.
OpenSearch Version
1.0.
Dashboards Version
1.0.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: