ngdestroy url redirect code example
Example 1: angular redirect to external url
window.location.href = '...';
Example 2: how to add redirec router in angular
Angular Path Router Redirect
window.location.href = '...';
Angular Path Router Redirect