How to remove # from the URL routes

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
phuongnv
Posts: 3
Joined: 18 Jun 2020, 10:19

29 Mar 2023, 06:58

I want to remove #, examble: http://localhost:4200/#/login
--> http://localhost:4200/login

help me, thanks

gucal
Posts: 50
Joined: 06 Sep 2022, 08:45

29 Mar 2023, 09:09

Hi.

This consists of using hashroute. If you don't want to use hashrouter, from the file in app.module.ts remove the this code.

Code: Select all

{provide: LocationStrategy, useClass: HashLocationStrategy} 
Regards!
Aliriza Gucal
PrimeNG Core Developer

phuongnv
Posts: 3
Joined: 18 Jun 2020, 10:19

29 Mar 2023, 09:45

it's work, thanks

Post Reply

Return to “Mirage - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests