Code4HR/okcandidate-v1

Open Graph Tag Data

Opened this issue · 3 comments

qwo commented

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.

qwo commented

Here is the graph tags we have.

unless we want to use a flag like suggested above we would have to populate the state.

qwo commented

i put some default copy that can be found inDefault.jsx and is rendered by the server.

qwo commented

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.

See https://github.com/Code4HR/okcandidate/blob/33073db259077bde63ae50b07929224394aae7a1/views/Default.jsx#L30

screenshot 2016-11-02 13 32 59