openvibers/openvibe.design Commits

Add visit history metadata (#242)

OP OpenVibers committed 3 days ago · f7d86ed794 · 1 file, +1 −1

Changes

ddiff --git a/server/render/layout.js b/server/render/layout.js
iindex 8676ee3..ecdf20e 100644
---- a/server/render/layout.js
++++ b/server/render/layout.js
@@@ -63,7 +63,7 @@ function layout({ title, description, canonical, path, robots = 'index, follow',
apiBase: NETWORK,
links: NAV.map((l) => ({ ...l, active: l.href === active || (l.href !== '/' && String(active).startsWith(`${l.href}/`)) })),
appBar: [{ label: 'Home', href: '/', icon: 'fa-house' }, { label: 'Create', href: '/create', icon: 'fa-wand-magic-sparkles' }, { label: 'Themes', href: '/themes', icon: 'fa-palette' }, { label: 'Arena', href: '/arena', icon: 'fa-crown' }, { label: 'System', href: '/system', icon: 'fa-layer-group' }],
-- history: { type: 'page', title: title || NAME },
++ history: { type: 'document', title: title || NAME, image_url: image || null },
silentLogin: `${BASE}/auth/login?silent=1&next={url}`,
sessionUrl: '/auth/me',
tokenUrl: '/auth/navbar-token',