Skip to content

Conversation

IosebKoplatadze
Copy link

This pull request updates module federation tools, the micro frontend router integration to improve support for custom base hrefs in Angular applications. The main changes ensure that the router correctly handles navigation when a base href is set, which is important for apps deployed under sub-paths.

Routing improvements:

  • Added retrieval of APP_BASE_HREF from the Angular injector and passed it to the router connection logic in bootstrap-utils.ts, enabling dynamic base href support. [1] [2]
  • Updated the connectRouter function in router-utils.ts to accept a baseHref parameter and remove the base href from the beginning of navigation URL if present, ensuring correct routing behavior for apps with a non-root base path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant