попробуйте, если вы получаете параметры URL для углового URL (не URL в кодировке URL)
import { Subscription } from "rxjs";
import { ActivatedRoute, Router } from "@angular/router";
constructor(private router: Router){}
param1:string;
$probando: Subscription;
href: string;
this.$probando = this._route.params.subscribe(params => {
console.log(params) //to see the keys
this.param1 = params[key];
this.routeInvoiceId = params[key];
});
//if you need the url and it is not an angular route import router
this.href = this._router.url;