Seeking a way to obtain the referrer URL in Angular 4. For instance, if my Angular website is example.com and it is visited from another PHP page like domaintwo.com/checkout.php, how can I detect the referring URL (domaintwo.com/checkout.php) on my Angular site? Looking for a solution similar to $_SERVER['HTTP_REFERER']
in PHP. Any help is appreciated, thank you!