diff --git a/commcare_connect/prelogin/route_meta.py b/commcare_connect/prelogin/route_meta.py new file mode 100644 index 0000000000..ecfe4ddf56 --- /dev/null +++ b/commcare_connect/prelogin/route_meta.py @@ -0,0 +1,185 @@ +"""Per-route title, description, and social image for the marketing SPA. + +Every marketing URL renders the SAME home.html, so without this the whole site +would ship one
: a reader sharing a blog post got the home page's title, +description, and image. app.js fixed that in the browser, but link unfurlers +(LinkedIn, Slack, X, iMessage) and non-rendering crawlers never run JavaScript, +so they only ever saw the home page. + +This module is the single source of truth. views.HomeView reads it to render the +head server-side, and home.html serializes it into a - +