drunomics / nuxtjs-drupal-ce

A Nuxt module to easily connect Drupal via custom elements.
https://lupus-decoupled.org/
MIT License
22 stars 4 forks source link

SSR breaks instead of following redirects with Nuxt 3.4.3 #146

Closed fago closed 1 year ago

fago commented 1 year ago

As experienced with https://github.com/drunomics/lupus-decoupled-nuxt3-demo and latest lupus decoupled, a server-returned redirect is breaking server rendering. It works with client-side rendering though, so https://github.com/drunomics/lupus-decoupled-nuxt3-demo/commit/19846821f45f213c51ba7c1b2cf3afa145bc1769 mitigates the issue a bit.

To reproduce:

The problem is that it tries to render the redirect page response, what obviously fails. So the real problem is that the redirect is not happening.

We need to fix server-rendering of redirect responses and make sure we have test coverage for this.