mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
502fa130aa
When navigation items contain external URLs (e.g. https:// links for documentation or third-party resources), mapNavigationItemsToRoutes previously registered them as Angular Router route definitions. In recent versions of @angular/build, the static prerender worker asserts that discovered routes do not return empty content during SSG prerendering, causing production builds and CI adev-deploy to fail on these routes. This change filters out external links in mapNavigationItemsToRoutes so only valid internal application paths are registered as Angular routes.