Version
v2.12.2
Reproduction link
https://gitlab.com/njam/repro-nuxt-html-lang
Steps to reproduce
1: Clone the repro repo:
git clone https://gitlab.com/njam/repro-nuxt-html-lang
cd repro-nuxt-html-lang
(relevant commit: https://gitlab.com/njam/repro-nuxt-html-lang/-/commit/be48fd82f0fdfd8197dbf7870a4cb9d74778a09f)
2: Build the static files, and serve them
yarn install
yarn run generate
npx serve ./dist
3: Open the page in the browser: http://localhost:5000
What is expected ?
The browser redirects to "/foo", and the html-tag has the attribute lang="de"
What is actually happening?
The browser redirects to "/foo", and the html-tag has the attribute lang="de de"
Open the browser's dev tools to inspec the "lang" attribute:

Additional comments?
Maybe vue-meta cannot correctly detect that the previous "lang"-value is coming from a server-rendered file when redirecting?
This vue-meta ticket might be related: #404
This bug report is available on Nuxt community (#c10664)