A <script type="speculationrules"> in the layout prerenders same-origin
links with eagerness "moderate" (hover or press). Excluded:
- cart, checkout, account, login, logout, wishlist, contact and the
future /islands, plus the admin (/boboko) and /stoic
- rel~=nofollow and [data-no-prerender]
- listing controls that load into a Turbo Frame (sort, filters,
pagination): links inside a <turbo-frame> or pointing at one, unless
they break out with data-turbo-frame="_top" like the product cards
Contact is excluded too, though the task didn't list it: it's a session
page with hCaptcha.
GA4 and a consent banner aren't in this repo, so no page-view delay on
document.prerendering is needed yet. Add one when they're added.
Watch production FPM after this deploy: until pages are cached, every
prerender is a full PHP render, and there are only 8 FPM workers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@view-transition { navigation: auto } inside prefers-reduced-motion:
no-preference, so page changes cross-fade in supporting browsers and
stay instant for visitors who ask for less motion. Turbo Frame listing
updates aren't document navigations and are unaffected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It was commented out by mistake. Same < /dev/null as its neighbours.
It compiles every view (vendor ones too) and runs cleanly locally, so no
views needed fixing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both links are now the same for every visitor, so the header can be
cached:
- Account always goes to route('account'); the auth middleware sends
guests to login, and after login they land back on the account page
(url.intended) instead of home.
- Wishlist always goes to route('wishlist'); WishlistController::guest
already redirects logged-in users to account.wishlist.
- One neutral label, storefront.nav.account, on desktop and mobile.
header.blade.php no longer calls auth().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- x-wishlist-button gets data-wishlist-product on its form root; the
server-rendered aria-pressed stays for now.
- Both header account links (desktop and mobile menu) share
[data-account-link].
- The CSRF meta tag gets id="csrf-token".
No visible change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The badge is absolute inside the fixed-size cart button, so showing it
or growing from 1 to 2 digits doesn't move the header. Adds #cart-badge
as a Turbo Stream target and records the rule that no island may change
the size of its container. cart-count-controller is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Staging was crawlable. Opt-in flag rather than APP_ENV, since staging
runs with APP_ENV=production too. Set APP_INDEXABLE=true on the live
site only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>