mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[APM] Fix link to onboarding page in the Observability Onboarding plugin (#161847)
Closes https://github.com/elastic/kibana/issues/159675 ## Summary We have in lot of places, Tutorial link hardcoded to `'/app/home#/tutorial/apm'` This must change based on deployment type to be Serverless or Non Serverless. For Serverless the URL is - `'/app/apm/onboarding'` For Non Serverless, the URL - `'/app/home#/tutorial/apm'` Hence to avoid adding logic to read Serverless/Non Serverless mode in all plugins and packages, i have implemented a redirect URL `/app/apm/tutorial` inside the APM plugin which will read the Serverless config and accordingly do the redirect.
This commit is contained in:
parent
ab486aff05
commit
fabb7109a4
22 changed files with 103 additions and 29 deletions
|
@ -78,7 +78,7 @@ export function UXActionMenu({
|
|||
color="primary"
|
||||
iconType="indexOpen"
|
||||
iconSide="left"
|
||||
href={application.getUrlForApp('/home#/tutorial/apm')}
|
||||
href={application.getUrlForApp('/apm/tutorial')}
|
||||
>
|
||||
{i18n.translate('xpack.ux.addDataButtonLabel', {
|
||||
defaultMessage: 'Add data',
|
||||
|
|
|
@ -48,7 +48,7 @@ export function RumHome() {
|
|||
'Enable RUM with the APM agent to collect user experience data.',
|
||||
}
|
||||
),
|
||||
href: http.basePath.prepend(`/app/home#/tutorial/apm`),
|
||||
href: http.basePath.prepend('/app/apm/tutorial'),
|
||||
},
|
||||
},
|
||||
docsLink: docLinks.links.observability.guide,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue