LeptonX (Angular)
When using Angular with useHash: true or a custom baseHref (e.g. /app/), the menu selection in LeptonX does not behave correctly:
useHash: false and <base href="/">).useHash or a custom baseHref is used.useHash: true, location.pathname always returns /, causing selected logic to fail.<base href="/app/">, location.pathname returns /app, which also breaks comparisons.location.pathname directly to determine the selected menu item, which does not account for useHash or baseHref.Inside the LeptonX Angular handling logic (routes.service.ts), there is a piece of code like:
this.router.events.pipe(
filter(e => e instanceof NavigationEnd),
map(() => location.pathname) //problematic
)
This does not work reliably with useHash or custom base paths.