350 open graph react #360

Merged
bones7242 merged 30 commits from 350-open-graph-react into master 2018-02-24 17:55:00 +01:00
Showing only changes of commit 9fea56c8a2 - Show all commits

View file

@ -25,6 +25,14 @@ module.exports = (req, res) => {
</Provider>
);
// check for a redirect
if (context.url) {
// Somewhere a `<Redirect>` was rendered
res.redirect(301, context.url);
} else {
// we're good, send the response
}
// get the initial state from our Redux store
const preloadedState = store.getState();