asp.net mvc 4 - Angular2 routing case sensitive how to make case insensitive for whole URL -


my existing application develop following mvc 4 , angular 2 technologies spa concept.

if open page using below link page open without error

http: //localhost/web/xyzproduct/home

----------------/web(sub domain)/xyzproduct(product name)/home(first page)

tried open below link following updates - product in small or sub domain in capital page not open.

http: //localhost/web/xyzproduct/home
or
http: //localhost/web/xyzproduct/home

have done googling same solution related home means if tried open page using small home page open.

using below code,

import { defaulturlserializer, urltree } '@angular/router'; export class lowercaseurlserializer extends defaulturlserializer {  parse(url: string): urltree {     debugger;     console.log(urltree);     return super.parse(url.tolowercase()); }  } 

i not solution whole url.

http: //localhost/web/xyzproduct/home

please guide me same.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -