angular route url without base code example Example: in angular how to get router url without query params this.router.url.split('?')[0]