Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Breadcrumb: SSR Error window is not defined #3156

Description

@jf908

Describe the bug

The Breadcrumb component errors in SSR mode because of this use of window.

const lastPath = `/${window.location.href.split('/').pop()}`;

Reproducer

No response

PrimeVue version

3.18.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

Try to SSR render <Breadcrumb> in a Nuxt app.

Expected behavior

No response

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions