mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Behavioral Analytics] Change Analytics DNS path (#147934)
### Description Recently it was discovered that our initial path to analytics brings some inconsistency into Enterprise Search routes, so it was decided to replace the `analytics/api` path with `api/analytics`. This PR is dedicated to changing Analytics DNS path from `analytics/api` to `api/analytics`
This commit is contained in:
parent
af2a7d63f4
commit
36978389a0
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ describe('AnalyticsCollectionIntegrate', () => {
|
|||
<AnalyticsCollectionIntegrate collection={analyticsCollections} />
|
||||
);
|
||||
expect(wrapper.find(EuiCodeBlock).at(0).text()).toContain(
|
||||
'data-dsn="/analytics/api/collections/1"'
|
||||
'data-dsn="/api/analytics/collections/1"'
|
||||
);
|
||||
expect(wrapper.find(EuiCodeBlock).at(0).text()).toContain('src="/analytics.js"');
|
||||
});
|
||||
|
|
|
@ -28,7 +28,7 @@ export type TabKey = 'javascriptEmbed' | 'searchuiEmbed' | 'javascriptClientEmbe
|
|||
export const AnalyticsCollectionIntegrate: React.FC<AnalyticsCollectionIntegrateProps> = ({
|
||||
collection,
|
||||
}) => {
|
||||
const analyticsDNSUrl = getEnterpriseSearchUrl(`/analytics/api/collections/${collection.id}`);
|
||||
const analyticsDNSUrl = getEnterpriseSearchUrl(`/api/analytics/collections/${collection.id}`);
|
||||
const webClientSrc = getEnterpriseSearchUrl('/analytics.js');
|
||||
|
||||
const [selectedTab, setSelectedTab] = React.useState<TabKey>('javascriptEmbed');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue