worktile / ngx-planet

🚀🌍🚀A powerful, reliable, fully-featured and production ready Micro Frontend library for Angular.
http://planet.ngnice.com
MIT License
539 stars 66 forks source link

routing mismatch when routerPathPrefix is similar with other sub application #264

Closed Matcha-Toast closed 1 month ago

Matcha-Toast commented 1 year ago

Describe the bug I got two application have similar name, one is 'app1' and the other is 'app1-similar'. During the development, we only start portal and app1-similar at local. then enter browser, it try to load app1's manifest which I do not need.

To Reproduce Steps to reproduce the behavior:

  1. Using ngx-planet v12.1.0 example code (app2 as app1-similar)

  2. change 'app2' routing path into 'app1-similar' in the app-routing,module.ts image

  3. change app2 routerPathPrefix into '/app1-similar' in the app.component.ts image

  4. change app2 routerLink into '/app1-similar'
    image

  5. open browser and enter app2

  6. See error image

Expected behavior Normal load sub application(app1-similar)

Desktop (please complete the following information):

Matcha-Toast commented 1 year ago

Hi 請問這項issue 有任何的建議 或更新嗎?
謝謝

why520crazy commented 1 year ago

你可以把 app1-similar 和 app1 的定义顺序调换一下试试。

why520crazy commented 1 month ago

fixed in 18.0.1