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