diff --git a/helpers/handleRender.jsx b/helpers/handleRender.jsx index ebf59983..58b80206 100644 --- a/helpers/handleRender.jsx +++ b/helpers/handleRender.jsx @@ -25,6 +25,14 @@ module.exports = (req, res) => { ); + // check for a redirect + if (context.url) { + // Somewhere a `` 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();