Dev spec

VapeHub Mega-menu & Nav — Developer Spec

The mega-menu is the single most SEO-critical part of the whole rebuild. The previous JS-heavy build hid the site's internal linking behind client-side rendering and on-tap fetching, which is a large part of what caused the traffic collapse. This spec exists mainly to stop that happening again.

It's a shared header — one canonical block reused across the homepage and every other page so they cannot drift. Source: the mega-menu region in vapehub-homepage-src/handover/vapehub-homepage.html (fenced with SHARED · MEGA-MENU HEADER begin/end comments — CSS, IA data, behaviour).


1. The rule that matters most: server-render every link

2. Information architecture (data-driven)

Everything — desktop panels, mobile lists, nav, drawer — generates from one MENU array (plus BRANDS_ALL, BRANDS_KIT, BRANDS_ELIQUID, FLAVOURS). One source; the server renders all surfaces from it.

Top-level order: New In · Vape Kits ▾ · Pods & Coils ▾ · E-Liquids ▾ · Pouches & Alternatives ▾ · Brands ▾ · Deals · Guides ▾.

3. Brand index — A–Z strip + in-place filter

4. Links must be real 200s

5. Behaviour + accessibility (built — preserve)

6. Open items