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.

Head function from nuxt.config.js is only considered on the first request #535

@TheAlexLichter

Description

@TheAlexLichter

Hey 👋🏻

First of all, sorry for the long title 🙈

When defining a head function or object in the nuxt.config.js, it is only evaluated and taken into consideration on the first request / first page a user is visiting.

Reproduction: https://codesandbox.io/s/codesandboxnuxt-oqqsj

Steps:

  1. Go to https://oqqsj.sse.codesandbox.io/
  2. Open inspector -> see tabindex="0" on the body
  3. Click the link to go to /about (it has to be the link, no manual input).
  4. tabindex="0" is gone.

--

Originally reported by @codeofsumit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions