diff --git a/app/client-entry.js b/app/client-entry.js index 4f4e0c1..2edc4c9 100644 --- a/app/client-entry.js +++ b/app/client-entry.js @@ -31,7 +31,12 @@ const updateDataStore = (id, data) => { const handleError = err => { if (err instanceof ReamError) { if (err.code === 'REDIRECT') { - router.push(err.redirectURL) + const url = err.redirectURL + if (/^(\w+:)?\/\//.test(url)) { + window.location.assign(url) + } else { + router.push(url) + } } else { app.setError(err) }