title: Angular 5: URLs case insensitive
body: <p>i know that this is common question but actually I didn't find any answer cover my needs...</p>
  
  <p>I have an <code>angular5</code> app with route configuration like this:</p>
  
  <pre><code>const routes: Routes = [
  { path: 'businessaccountmanagement', component:BusinessAccountManagementComponent },
      ...
  ];
  </code></pre>
  
  <p>and according to <a href="https://angular.io/api/router/UrlSerializer" rel="noreferrer"><code>UrlSerializer</code> documentation</a> i've extends <code>DefaultUrlSerializer</code> like this:</p>
  
  <pre><code>import { DefaultUrlSerializer, UrlTree, UrlSerializer } from '@angular/router';
  
  export class LowerCaseUrlSerializer extends DefaultUrlSerializer {
      parse(url: string): UrlTree {
  
          return super.parse(url.toLowerCase());
      }
  }
  
  export const LowerCaseUrlSerializerProvider = {
      provide: UrlSerializer,
      useClass: LowerCaseUrlSerializer
    };
  </code></pre>
  
  <p>So in this implementation everything is working fine coz all url cases will convert to lowercase and match with <code>path: 'businessaccountmanagement'</code></p>
  
  <p>But, what i need is to declare my route as <code>upper camel case</code> like this:</p>
  
  <pre><code>const routes: Routes = [
  { path: 'BusinessAccountManagement', component:BusinessAccountManagementComponent },
      ...
  ];
  </code></pre>
  
  <p>and accept all routes match the string regardless of letters case upper or lower</p>
  
  <p>accepted routes example:</p>
  
  <ul>
  <li>domain/BusinessAccountManagement</li>
  <li>domain/businessaccountmanagement</li>
  <li>domain/BUSINESSACCOUNTMENEGEMENT</li>
  <li>...</li>
  </ul>
  
  <p>** The old version from my app was angular 1.x with <a href="https://github.com/angular-ui/ui-router/wiki/Quick-Reference" rel="noreferrer">ui-route</a>  and was able to do it in on line of code:</p>
  
  <pre><code>$urlMatcherFactory.caseInsensitive(true);
  </code></pre>
  
  <p>any help will be very appropriated. </p>