Open Graph Tag Data
Opened this issue · 3 comments
Since we are using server rendered react in some parts, we can set in the call or use a query selector to give specific OG data
for example okcandidate.code4hr.org?mayor=sessoms
and it would show a picture of the candidate.
Edit:
the above apprach is broken because we can't use the mayors last name like the photos, a solution is to use their unique candidateIDs instead so that the router can handle this better.
However another better solution is just to leave this up to the backend and can be revisited also below.
Here is the graph tags we have.
unless we want to use a flag like suggested above we would have to populate the state.
i put some default copy that can be found inDefault.jsx
and is rendered by the server.
Besides also that the router navigation needs to be resolved, this involves also the OG specified data to be updated
OG Data is implemented However when we link to the URL, we are linking to the base instead of the current suggested.