What broke
On a phone, the site’s hamburger menu worked on the first page you opened and did nothing on the second. The cause was Astro’s View Transitions. With them on, moving between pages swaps the content in place instead of loading a new document, so an inline script that wired up an event listener runs once, on the first page, and never again. The new page’s menu button had no listener.
What we changed
Three small PRs merged on Monday, April 13:
- #2 fixed the menu and found it wasn’t alone: several interactive components had the same problem. Each one now sets itself up on Astro’s
astro:page-loadevent, which fires after the first load and after every page swap. - #3 fixed the menu toggle again that afternoon, and made the touch targets and link text in the mobile menu bigger so they’re easier to hit.
- #4 turned the product cards on all eight industry pages into real links. They had looked clickable and weren’t.
On Thursday, April 16, one commit edited the service descriptions, another reworked the blueprints page, and a third added a canonical URL to every page through the base layout, so each page tells search engines its one true address.
That’s the whole week for this repository. Alongside it we spent two days on an earlier provisioning experiment in another repository. Its last commit was on April 14, and we later archived it.
The same bug, four months later
What we’d tell someone else
If you turn on client-side page transitions, every inline script on the site changes meaning: “runs when the page loads” becomes “runs once per visit”. Decide on one pattern for setting up interactive components, use it everywhere, and check new components against it, because each one that forgets will work perfectly until someone clicks a second link.