Skip to content

[Platform] Add exact property to register route in plugin #69110

@XavierM

Description

@XavierM

In the security solution, we are having different routes like

  • app/security/overview
  • app/security/alerts
  • app/security/hosts
  • etc...

we would like to redirect the route app/security to app/security/overview by doing that

  core.application.register({
      id: 'security',
      title: 'Security',
      appRoute: 'app/security',
      navLinkStatus: AppNavLinkStatus.hidden,
      mount: async (params: AppMountParameters) => {
        const [{ application }] = await core.getStartServices();
        application.navigateToApp(`${APP_ID}:${SecurityPageName.overview}`, { replace: true });
        return () => true;
      },
    });

However, when we are doing that, we are breaking all the different routes in our app. Since everything is going to the mount of the route app/security. That's why we think to add an exact property will resolve our problem.

Metadata

Metadata

Assignees

Labels

Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//v7.9.0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions