diff --git a/packages/core/apps/core-apps-server-internal/src/core_app.ts b/packages/core/apps/core-apps-server-internal/src/core_app.ts index 25a7c124a91a0..c50ddd6e5cc1f 100644 --- a/packages/core/apps/core-apps-server-internal/src/core_app.ts +++ b/packages/core/apps/core-apps-server-internal/src/core_app.ts @@ -215,10 +215,5 @@ export class CoreAppsService { '/node_modules/@kbn/ui-framework/dist/{path*}', fromRoot('node_modules/@kbn/ui-framework/dist') ); - - core.http.registerStaticDir( - '/observabilityOnboarding/{path*}', - fromRoot('x-pack/plugins/observability_onboarding/public/assets') - ); } } diff --git a/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts b/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts index 56fc988b01f97..b5b05bb63544b 100644 --- a/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts +++ b/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts @@ -49,7 +49,7 @@ const createApiKeyRoute = createObservabilityOnboardingServerRoute({ const coreStart = await core.start(); const scriptDownloadUrl = getKibanaUrl( coreStart, - '/observabilityOnboarding/standalone_agent_setup.sh' + '/plugins/observabilityOnboarding/assets/standalone_agent_setup.sh' ); const apiEndpoint = getKibanaUrl( coreStart,