I have a problem where I want to load the favicon from some websites, but I’m having trouble because the URLs have extra parts like “/home”. These extra parts, called routes, prevent the favicon from loading properly. I need a way to make a function that automatically removes the route from the URL.
return this.favurl = https://${this.url}/favicon.ico
;
New contributor
Julian Bausch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.