I am currently working on an Angular application. Within the index.html file, there is a header that contains links to external websites.
<a href="#" onclick="getExternalUrl('about.html');">Click here </a>
<script type="text/javascript">
function getExternalUrl(page)
{
return "https://external-domain.com/"+page;
}
</script>
Unfortunately, when I try to access the external website, my Angular application redirects me to localhost:4200 instead. I'm unsure why this is happening.