DEV Community

Cover image for A Short Link Can Work and Still Be Wrong
Bohdan Romashko
Bohdan Romashko

Posted on AI-assisted

A Short Link Can Work and Still Be Wrong

A short link can redirect successfully and still take someone to the wrong place. An HTTP redirect answers, “Where should the browser go next?” A final 200 OK answers, “Did the destination return a response?” Neither answers, “Is this the page the reader needs?”

Imagine sharing a short URL for an event registration form. A week later, the organizer replaces the form but leaves the old page online. The short URL still opens. The old page may even return 200 OK. The network request looks healthy, but the person following the link can no longer register.

That is why I treat short-link testing as two separate checks: the route and the reader's destination.

Diagram showing two checks for a short link: verify the redirect route, then verify what the reader sees at the destination.

Check the route

Open your browser's developer tools, go to the Network panel, and enable Preserve log before opening the short link. This keeps the requests visible as the browser moves between pages. Chrome's Network panel guide shows where to find that setting.

Inspect the short-link request. A redirect response normally points to the next URL through the Location header, as explained in MDN's redirect guide. Follow the chain to the final URL and compare its domain and path with the destination you intended to share.

If the link carries campaign parameters, check the final URL rather than assuming those parameters survived the redirect. A successful redirect to a URL missing the parameters you needed is still a failed campaign link.

If a destination changed recently but the link still opens the old page, browser cache may be involved: a 301 redirect can be cached. With DevTools open, enable Disable cache and load the short URL again. This bypasses the browser cache for that test; a normal window may still show what returning readers encounter.

Check what the reader sees

Now leave the Network panel and open the link in a private window without signing in. Does the page show the current form, document, or offer? Can an ordinary reader use it? If most readers will open the link on a phone, test it on a phone-sized screen too.

This catches failures that status codes cannot. A login page can return 200 OK. So can an outdated PDF, a closed registration form, or a page that loads but hides the action the reader came for. The browser completed the trip; the reader did not complete the task.

Make the test repeatable

Before publishing a short URL, write down its expected destination in plain language: “This link should open the current event signup form for someone who is not logged in.” Then run both checks:

  1. Route: Does the redirect end at the intended URL, with any necessary parameters intact?
  2. Reader: Does that page show the current content and let the intended audience do what the link promises?

Run the same check again if the destination page changes. A short link is not ready simply because it resolves. It is ready when the path and the experience at the end of that path are both right.

Top comments (0)