A B2B website preview link is ready to send only when it opens in a browser that is not logged in, showing the home page and one inner page complete.
Last Wednesday, at ten in the evening, three design directions were done. I opened all six preview pages one by one. Layout and images looked right. The next morning the client sent a screenshot: no styles, every image broken. I was signed in. He was not.

The test: a browser with no session
Three directions, two pages each. One design draft page, one site draft built from real content. All six loaded inside the admin iframe.
An admin iframe does not count. It uses your session.
The real check happens outside the admin: copy the link, open a private window, paste, press Enter. That is where two breaks show up, one in paths and one in authentication.
Break one: root-relative assets
The site is built with root-relative references: /assets/style.css, /products/. The preview lives under /preview/<id>/. The browser looks for those files at the site root, does not find them, and returns 404.
The fix is a rewrite after the build. Add the preview prefix in several places: href, src, poster, action, and data-src. Also rewrite every url(/…) inside inline CSS and every address inside srcset.
Some links must not be touched:
| Rewrite | Leave alone |
|---|---|
Root-relative /assets/… |
Full external https://… |
Inline CSS url(/…) |
Protocol-relative //cdn… |
Each root path in srcset |
# anchors, data:, mailto: |
The rewrite has to survive a second pass. Preview rebuilds run the script again, and a link with two prefixes is harder to diagnose than a 404. Run the same page through twice and compare the output.
Break two: the signature covers one path
With paths fixed, the home page opens. Styles and images still return 401.
Preview links carry a short signature, five minutes. The signing layer signs a single path. The home page has one. The CSS and images are different paths, unsigned, so anonymous requests are refused.
This is the signing model, not a bug in the preview program. Knowing the model tells you what a client can actually see:
| Option | What the client gets | Cost |
|---|---|---|
| Sign the whole pack (prefix signature) | One link, full site | Signing layer changes, wider surface |
| Inline assets into HTML | One self-contained page | Size doubles on multi-page sites with images |
| Give the client an account | Full load | Overseas buyers rarely finish a signup, and accounts need care |
For now the fallback is screenshots and a PDF. If the client must click through, wait for the whole-pack signature. Write that down before the next send, not after.
Break three: the checker passed without taking screenshots
Every preview runs an automated check: title, description, H1, links, contrast, plus desktop and mobile screenshots.
In the earlier version, the machine had no Chrome. Screenshots could not run, and the check still returned pass. Structure was all green. The visual field was empty.
It now has three states. ok when both screenshots exist, unavailable when the browser is missing, failed when the capture errors. The last two count as not passed. Small change, but it separates "not checked" from "checked".
Read the report, not the green tick. Count the items. See whether the screenshot line is there.
Five checks before sending
- Open the link in a private window, not the admin iframe.
- Open the home page and one inner page. Product and contact pages both get a click.
- Open developer tools, filter Network by css and img, look for 401 or 404.
- Check for noindex in the response headers or page source. A preview must not be indexed.
- Check the expiry and the time zone. A five-minute link read six hours later was never sent.
The fifth one is the easiest to miss. Before sending to a buyer in Europe, work out what time it is there.
Who it fits / Limits
This fits internal review on a signed-in session, where speed matters and a broken image is a small annoyance. It also fits a B2B website handed to a client only as screenshots or a PDF, which needs no click-through at all.
It does not fit a client expected to click through a link across a time zone. The current single-path signature and five-minute expiry cannot support that, so use screenshots until a whole-pack signature exists. It also does not fit the production site as a preview: a half-finished page there gets indexed and found by buyers.
When not to send a preview link
Internal review over a signed-in session is fine. It is faster.
For a client, two options hold up: a whole-pack signature, or an export to PDF and long images. The second is not clickable, but it never shows a blank page.
Do not use the production site as a preview. A half-finished page on the real domain gets indexed and found by buyers. Cleaning that up costs more than rebuilding the preview.
A preview writes design files only. No build, no publish. Keep that boundary.
Last updated: 2026-11-09
FAQ
How long does a preview link last?
Five minutes in the current setup. Enough for your own check, not enough to send across time zones. Confirm the expiry first, or send screenshots instead.
The client sees no styles. What do I check first?
Confirm he is not signed in. Then open the same link in a private window and check the status codes for CSS and images in Network. 401 is authentication. 404 is a missing path rewrite.
Will search engines index a preview page?
Normally not. The response carries noindex and the link is short-lived. Still, keep previews off the production domain so both protections apply.
Should I create an account for the client?
You can, but it adds maintenance. Signup and passwords are where overseas buyers drop out. Use screenshots for the short term, and build the prefix signature for the long term.