Describe the bug
When I copy a Short URL (from the Share button), a security_tenant parameter is added to the end of the URL
e.g. http://myopensearch.server/goto/d4af12eaa1ba5d22b7f3007b14f1122f?security_tenant=T1
This link works if I am in the correct tenant, but if I am in a different tenant then this URL fails with the error
{"statusCode":404,"error":"Not Found","message":"Saved object [url/d4af12eaa1ba5d22b7f3007b14f1122f] not found"}
When using a non-shortened link, OpenSearch Dashboards loads but doesn't switch the tenant so it returns a "Could not locate that dashboard error" (see figure 5) which seems like the same issue, just returned in a nicer way.
To Reproduce
Steps to reproduce the behavior:
- Start with an OpenSearch installation with two (or more) tenants
- Navigate to a Visualisation or a Dashboard in the first tenant
- Click Share, then Copy link
- Navigate to the second tenant via the button at the top right
- Paste the copied URL from step 3 into the URL bar
Expected behavior
OpenSearch Dashboards should switch your current tenant and load the visualisation/dashboard that was shared with you (if you have access).
OpenSearch Version
2.0.0
Dashboards Version
2.0.0
Plugins
GET /_cat/plugins:
opensearch-alerting 2.0.0.0
opensearch-anomaly-detection 2.0.0.0
opensearch-asynchronous-search 2.0.0.0
opensearch-cross-cluster-replication 2.0.0.0
opensearch-index-management 2.0.0.0
opensearch-job-scheduler 2.0.0.0
opensearch-knn 2.0.0.0
opensearch-ml 2.0.0.0
opensearch-notifications 2.0.0.0
opensearch-notifications-core 2.0.0.0
opensearch-observability 2.0.0.0
opensearch-performance-analyzer 2.0.0.0
opensearch-reports-scheduler 2.0.0.0
opensearch-security 2.0.0.0
opensearch-sql 2.0.0.0
Screenshots
Figure 1:

Link generated: http://myopensearch.server/goto/d4af12eaa1ba5d22b7f3007b14f1122f?security_tenant=T1
Figure 2:

Figure 3:

Figure 4:

Figure 5:

Host/Environment :
- OpenSearch and OpenSearch Dashboards running on Docker
- Chrome, Firefox and Edge report the same functionality
Additional context
We have encountered the same issue in 1.3.2, but seems to be okay if you replace the URL of the tab you're currently in, rather than opening a separate tab for the secondary tenant's link.
Describe the bug
When I copy a Short URL (from the Share button), a
security_tenantparameter is added to the end of the URLe.g. http://myopensearch.server/goto/d4af12eaa1ba5d22b7f3007b14f1122f?security_tenant=T1
This link works if I am in the correct tenant, but if I am in a different tenant then this URL fails with the error
{"statusCode":404,"error":"Not Found","message":"Saved object [url/d4af12eaa1ba5d22b7f3007b14f1122f] not found"}When using a non-shortened link, OpenSearch Dashboards loads but doesn't switch the tenant so it returns a "Could not locate that dashboard error" (see figure 5) which seems like the same issue, just returned in a nicer way.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
OpenSearch Dashboards should switch your current tenant and load the visualisation/dashboard that was shared with you (if you have access).
OpenSearch Version
2.0.0
Dashboards Version
2.0.0
Plugins
GET /_cat/plugins:
Screenshots
Figure 1:

Link generated:
http://myopensearch.server/goto/d4af12eaa1ba5d22b7f3007b14f1122f?security_tenant=T1Figure 2:

Figure 3:

Figure 4:

Figure 5:

Host/Environment :
Additional context
We have encountered the same issue in 1.3.2, but seems to be okay if you replace the URL of the tab you're currently in, rather than opening a separate tab for the secondary tenant's link.