Skip to content

ScopedHistory#createHref implementation does not include the local basePath #62016

@joshdover

Description

@joshdover

ScopedHistory implements the History#createHref method by simply calling the underlying parentHistory's method. This does not currently work as expected and cannot generate valid URLs:

  • Set Kibana's base path to /xvf/
  • In an app with the base path of /app/metrics, calling createHref({ pathname: '/inventory' }) returns /xvf/inventory (notice the missing basePath) rather than the complete href: /xvf/app/metrics/inventory

Metadata

Metadata

Assignees

Labels

Feature:New PlatformTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//bugFixes for quality problems that affect the customer experience

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