The Doozer Brainlive from the knowledge bundle · v2.2.618 · 2026-09-13 17:15 ETall pages · one page

Shortlinks + QR routing (doozer.link)

systems/shortlinks.md · System · shortlinks, qr, doozer.link, routing, marketing, lead-flywheel

unverified: no trust signals recorded yet

Dynamic short URLs at doozer.link. The code encodes doozer.link/<slug>; the destination is editable, so a printed QR can be re-pointed without reprinting. The routing layer for the observed-world lead flywheel.

Shortlinks + QR routing (doozer.link)

doozer.link is a dedicated shortlink host. A QR or shared link encodes doozer.link/<slug>; the slug maps to an editable destination, so the same printed code can be re-pointed later without reprinting. This is the routing layer for the observed-world lead flywheel: claim postcards, direct mail, and campaign links all route through here so they stay dynamic.

How it routes

index.php recognizes host doozer.link (or *.doozer.link) at the top of the routing block and calls shortlinkHandleRequest() in includes/shortlinks.php. That parses the first path segment as the slug, resolves it (single indexed lookup), increments click_count / last_clicked_at best-effort, and 302s to the destination (302 + no-store so destination changes take effect and nothing caches). Unknown or inactive slugs bounce to doozer.work (no dead ends); it serves its own robots.txt (disallow all).

The shortlinks table self-creates on first use (shortlinkEnsureTable()), so doozer.link works the moment DNS points here, before the migration (migrations/sprint_shortlinks.sql) is run. Columns: slug (unique), destination_url, label, business_id, campaign, is_active, click_count, last_clicked_at.

Managing + minting

Admin → Infrastructure → Shortlinks (includes/admin-shortlinks.php): create (auto or custom code), edit the destination inline, activate/deactivate (the off switch that does NOT break a printed QR the way delete does), per-link click counts, one-click copy, and a client-side QR generator with PNG download.

Programmatic: shortlinkCreate($destination, ['slug','label','business_id','campaign']) returns ['ok','slug','url']; other features (claim postcards, direct mail) mint links this way. Dev preview: ?e=devapi&action=shortlink&create=<url> / &resolve=<slug>.

Known permanent slugs

Operator note

DNS for doozer.link points at this LAMP server (like the other alias domains); Doozer handles it entirely in code by HTTP_HOST. There is no admin or business site on doozer.link — every path is a slug lookup. Mint a custom slug with shortlinkCreate($url, ['slug' => '...']) or dz shortlink create= slug=.

Regeneration + Foundation (keep 2,400 sites fresh and safe)Shortlinks and QR (doozer.link)