How do Chrome, Safari, Firefox or other browsers know you've visited the destination URL of a redirecting link?
I've always found it interesting that the browsers know the URL a redirecting URL lands on and apply the visited styling to the link.
To understand what I'm asking:
- Type a random keyword into Google.
- Find a blue link in the search result. Do not click on it.
- Copy the destination URL (usually written in green beneath the link).
- Open a new window/tab and paste the destination URL in the address bar and hit Enter.
- Go back to the Google search results and immediately the link becomes visited and turns purple.
However, the link is to some
google.com/url... page. Is there something Google puts in their markup to tell the browser what URL to affiliate the link's history with or something? Do browsers just read the Google search results a certain way?