Links · Link targets
Link to localhost
A link on this page points to localhost, a development address that only works on the developer's own computer.
How this page is built
The link below points to http://localhost:8080/, the address of a local development server. For anyone else it fails or opens something unrelated on their own computer.
See the development preview.
Why it matters
Localhost always means the computer you are using. A link to it only works for the developer who created it, while their development server is running.
For visitors and crawlers it is broken. It is also a sign that development addresses may have leaked into other places, such as canonicals, sitemaps or image paths.
How to check it
Search a crawl export or the site source for localhost and 127.0.0.1. Crawl tools report these links as errors or connection failures. Check images, scripts and canonicals as well as normal links.
How to fix it
Replace the link with the live address, or better, a root-relative path that works on every environment. Add a check to the build or deployment process that fails if localhost appears in the output.