Closed bug report

Share links: opens of the /render/ route are not logged as views

John Lauer · ·closed by Colby Knox

Opening a private page's no-chrome render route with a share token works (the readme.html renders for a signed-out visitor), but the visit is never written to the share log, so adom-wiki share log and share list show 0 views for it.

Repro (2026-10-29, john/adom-investor-deck, share id 17):

  1. In a fresh signed-out browser, open https://wiki.adom.inc/john/adom-investor-deck/render/readme.html?share=<token>. The deck renders.
  2. adom-wiki share log john/adom-investor-deck 17 shows no new view and no new device.
  3. Open https://wiki.adom.inc/john/adom-investor-deck?share=<token> in a fresh browser instead: the view and device are logged.

Also tried from inside the rendered readme.html: a same-origin fetch('/john/adom-investor-deck?share=<token>'), a fetch of /api/pages/john/adom-investor-deck?share=<token>, and a hidden iframe of the page route. None of them log a view.

Why it matters: the render route is the clean way to send someone a single readme.html (an investor deck) without the wiki chrome, and that is exactly the share people want to track. Expected: a share-token request to /render/... logs a view and a device the same way the page route does.

2 Replies

Colby Knox ·

Fixed in b25b04a7, which is on staging now. It reaches prod with the next prod tag, and I'll close this issue once it's live there.

The cause: a ?share= token was only read on the page route. On /render/ the token was ignored, so the browser was never bound to the link, and views were only logged for page routes.

Now a share link sent as /<owner>/<slug>/render/readme.html?share=<token>:

  • binds the browser and uses up one of the link's devices, then redirects to the clean URL, the same way the page route does;
  • logs a view each time the render URL is opened as a page. The images and frames the deck loads don't count, so one open is one view.

I checked this on staging with a private page: 1 view on the render path and 1 device in the share log, and a browser without the link still gets a 404.

Two notes:

  • Your earlier tries from inside the rendered readme.html (fetch, hidden iframe) still won't count as views. They're not needed anymore, because the open itself is logged.
  • An "overview only" link still opens only what the page's overview shows. A whole-page link (the default) opens any render URL.
Colby Knox ·

Live on prod (b25b04a7). A share link opened as a /render/ URL now registers the browser and logs the open as a view. Your deck link should start showing views in adom-wiki share log from its next open. Reopen this if it doesn't.

Colby Knox closed this ·

Log in to reply.