openvibers/openvibe.connect Commits

The navbar says Connect.OpenVibe.Website, not Connect.OpenVibe.Connect (#6)

OP OpenVibers committed 11 days ago · 836fb03098 · 1 file, +3 −2

The navbar reads a subdomain from the host and puts it in front, so tldLabel 'Connect' made it say Connect twice in
production (tests run on 127.0.0.1 and never showed it). The brand is now sub connect, tld website: the network's way
of naming a product on a subdomain (Bench.OpenVibe.Services).

Changes

ddiff --git a/server/render/layout.js b/server/render/layout.js
iindex 114c168..be559bb 100644
---- a/server/render/layout.js
++++ b/server/render/layout.js
@@@ -50,8 +50,9 @@ function layout(o) {
const canonical = o.canonical === undefined ? `${String(config.baseUrl).replace(/\/+$/, '')}${pathNow.split('?')[0]}` : o.canonical;
const navbar = {
service: 'connect',
-- // connect.openvibe.website reads as OpenVibe.Website by its host; the brand says Connect.
-- brand: { tld: 'website', tldLabel: 'Connect' },
++ // Connect.OpenVibe.Website, the way the navbar names every product on a subdomain (Bench.OpenVibe.Services).
++ // With tldLabel 'Connect' the host's own "connect" was added in front: "Connect.OpenVibe.Connect" (11-02).
++ brand: { sub: 'connect', tld: 'website' },
apiBase: NETWORK_URL,
links: NAV.map((l) => ({ ...l, active: l.href === active || (l.href !== '/' && pathNow.startsWith(`${l.href}/`)) })),
appBar: [