Angular useHash=true,all routes should have hash ,except few component routes without hash ,...

Discussão em 'Angular' iniciado por Rahul Krishnakumar, Janeiro 15, 2025.

  1. Kindly provide solution for below : Requirement : By default all page routes should have # in route expect for 2 specific pages say config -> / config instead of /#/config Note: CHanges in Server side like apache or nginx , can't be done as its managed by different team Kindly suggest some solution , FYI: Kindly find stackblitz link , I could not find solution with usehash true , found an approach by keeping usehash false Any possibility to do from Angular this implementation , please provide solution forked as sttackblitz comment , appreciated , thanks !

    https://stackblitz.com/edit/angular...e.ts,src/app/home.component.ts,src/index.html

    Issue on refresh or unable to find solution

    Continue reading...

Compartilhe esta Página