[8.x] [Obs AI Assistant] Fix navigating to the search connectors page (#217749) (#217862)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Obs AI Assistant] Fix navigating to the search connectors page
(#217749)](https://github.com/elastic/kibana/pull/217749)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Viduni
Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2025-04-10T14:27:54Z","message":"[Obs
AI Assistant] Fix navigating to the search connectors page
(#217749)\n\nCloses
https://github.com/elastic/kibana/issues/217748\n\n## Summary\n\n###
Problem\n\nClicking on connectors in the Search connectors tab in the AI
Assistant\nsettings navigates the user to a blank
page.\n\n\nhttps://github.com/user-attachments/assets/e369e539-cf75-4ea4-8cd0-343dbfbf9a33\n\nThis
happens because `enterprise_search` URLs are deprecated and
it's\nrenamed to `elasticsearch`.\nRelated to
https://github.com/elastic/kibana/pull/202838\n\nList of changed URLs
-\nhttps://github.com/elastic/search-team/issues/7961#issuecomment-2433029797\n\n###
Solution\n\nReplace the URL path from `enterpriseSearch` to
`elasticsearch`\n\nAfter the
fix:\n\n\nhttps://github.com/user-attachments/assets/5ebad872-9a87-46b0-ad2f-83a8ff6e017e\n\n\n###
Checklist\n\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"368d4bf5c53e7b4c64ac1e768eec72c82a004ed1","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:Obs
AI
Assistant","backport:version","v8.18.0","v9.1.0","v8.19.0","v8.18.1"],"title":"[Obs
AI Assistant] Fix navigating to the search connectors
page","number":217749,"url":"https://github.com/elastic/kibana/pull/217749","mergeCommit":{"message":"[Obs
AI Assistant] Fix navigating to the search connectors page
(#217749)\n\nCloses
https://github.com/elastic/kibana/issues/217748\n\n## Summary\n\n###
Problem\n\nClicking on connectors in the Search connectors tab in the AI
Assistant\nsettings navigates the user to a blank
page.\n\n\nhttps://github.com/user-attachments/assets/e369e539-cf75-4ea4-8cd0-343dbfbf9a33\n\nThis
happens because `enterprise_search` URLs are deprecated and
it's\nrenamed to `elasticsearch`.\nRelated to
https://github.com/elastic/kibana/pull/202838\n\nList of changed URLs
-\nhttps://github.com/elastic/search-team/issues/7961#issuecomment-2433029797\n\n###
Solution\n\nReplace the URL path from `enterpriseSearch` to
`elasticsearch`\n\nAfter the
fix:\n\n\nhttps://github.com/user-attachments/assets/5ebad872-9a87-46b0-ad2f-83a8ff6e017e\n\n\n###
Checklist\n\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"368d4bf5c53e7b4c64ac1e768eec72c82a004ed1"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217749","number":217749,"mergeCommit":{"message":"[Obs
AI Assistant] Fix navigating to the search connectors page
(#217749)\n\nCloses
https://github.com/elastic/kibana/issues/217748\n\n## Summary\n\n###
Problem\n\nClicking on connectors in the Search connectors tab in the AI
Assistant\nsettings navigates the user to a blank
page.\n\n\nhttps://github.com/user-attachments/assets/e369e539-cf75-4ea4-8cd0-343dbfbf9a33\n\nThis
happens because `enterprise_search` URLs are deprecated and
it's\nrenamed to `elasticsearch`.\nRelated to
https://github.com/elastic/kibana/pull/202838\n\nList of changed URLs
-\nhttps://github.com/elastic/search-team/issues/7961#issuecomment-2433029797\n\n###
Solution\n\nReplace the URL path from `enterpriseSearch` to
`elasticsearch`\n\nAfter the
fix:\n\n\nhttps://github.com/user-attachments/assets/5ebad872-9a87-46b0-ad2f-83a8ff6e017e\n\n\n###
Checklist\n\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"368d4bf5c53e7b4c64ac1e768eec72c82a004ed1"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
This commit is contained in:
Kibana Machine 2025-04-10 18:23:35 +02:00 committed by GitHub
parent 1575ad3e88
commit 95b42a29e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ export const SELECTED_CONNECTOR_LOCAL_STORAGE_KEY =
export function SearchConnectorTab() {
const { application } = useKibana().services;
const url = application.getUrlForApp('enterpriseSearch', { path: '/content/connectors' });
const url = application.getUrlForApp('elasticsearch', { path: '/content/connectors' });
return (
<>