I need to get my current route without params in Angular 2, I found a way to get the current route with params as follows:
this.router.url
To get current route without query parameters, you can use below mentioned single line:
this.url = this.url.substr(0, this.url.lastIndexOf("?"));