0

I have a problem when entering or pasting the url in the lower case of my application.

If I write or paste the url in this way:

http://localhost:4200/Customers/Natural

Works correctly

but if I enter or paste it in this way

http://localhost:4200/clients/natives
I get the error as if the ulr did not exist

I am directing with router in angular 7, I can do something so that it does not matter how come the url I work the income?

Urls are declared in this way

declared url

  • 1
    Possible duplicate of [In Angular 6 how make case insensitive url pattern?](https://stackoverflow.com/questions/51985973/in-angular-6-how-make-case-insensitive-url-pattern) – Elias Soares Jun 18 '19 at 18:01
  • 1
    Welcome to Stackoverflow. Please, before asking for a question, google for it to avoid duplicate questions. – Elias Soares Jun 18 '19 at 18:03
  • It does not work, since that code what it does is to convert the url to lowercase, when I need it to be small or camelcase or uppercase work, I can not declare the variables in lowercase at the request of my company – FRANCISCO J. BLANCO Jun 18 '19 at 18:04
  • So you will need to modify the proposed UrlSerializer to turn each piece of the url to CamelCase. But the answer is there. – Elias Soares Jun 18 '19 at 18:07
  • There are variables that can reach this form. `Utilidades/CrearNotificaciones` since the url variables are declared as `{ path: 'Ahorros/Disponible/TarjetaHabientes', component: TarjetaHabientesComponent }, { path: 'Clientes/Naturales/SolicitudServicios', component: SolicitudServiciosComponent },{ path: 'utilidades/crearnotificaciones', redirectTo: 'Utilidades/CrearNotificaciones' },` It generates a page error not found – FRANCISCO J. BLANCO Jun 18 '19 at 18:45

0 Answers0