Home

Issue: 1797

Got 404 error when navigate to page with asyncData

[issue link]

I got a page with this code

asyncData ({ req }) {
    return {
      ua: req.headers['user-agent'] || 'unknown'
    }
  }

If I load this page directly in the browser (from server) - it works. But is I route there on client I got 404 error.

Any reason why this happening?

This question is available on Nuxt.js community (#c1612)