NuxtN
Nuxt2y ago
8 replies
Mittelblut9

Nuxt loading content from other pages

I have this issue only on production currently.

When i'm redirecting the user with
this.$router.push({
   path: '/game',
}); 

to another page, suddenly some content from other pages gets loaded into the current layout.
In my screenshot you can see the /game page... The Headline "Bereit zum Spielen?" is from the
/
page and on the left "Trete einem Raum bei" is from /lobby
The content with the red border is the actually content which should only be shown on this current page

When im refreshing the page. Everything disappears and it works.

I dont know why this happens and why this happens only on prod.
I build the prod site with nuxt build and run it with node .output/....

I have another nuxt website with a quite similar setup - everything works there.
image.png
Was this page helpful?