Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Duplicate html "lang" attribute on page redirect from SSR #562

@njam

Description

@njam

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:
Screenshot from 2020-05-15 17-39-14.png

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions