Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwritten head (SSR) when using wildcard path! #402

Open
MasihTak opened this issue Sep 15, 2024 · 1 comment
Open

Overwritten head (SSR) when using wildcard path! #402

MasihTak opened this issue Sep 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MasihTak
Copy link

MasihTak commented Sep 15, 2024

Environment

Node v21.7.3
"@unhead/schema-org": "^1.9.16",
"@unhead/ssr": "^1.9.16",
"@unhead/vue": "^1.9.16",
"express": "^4.19.2",
"vue": "^3.4.38",
"vue-router": "^4.4.3",

Reproduction

Create a page and a wildcard path using the following code:

 {
        path: '/:notFound(.*)',
        component: () => import('@/views/NotFound.vue'),
    }

Then, within the page NotFound add the useServerHead or useHead with the desired title.

Describe the bug

The wildcard page will take the place of the title and any other meta data given in useServerHead of other pages in SSR!

Additional context

No response

Logs

No response

@MasihTak MasihTak added the bug Something isn't working label Sep 15, 2024
@harlan-zw
Copy link
Collaborator

Hi, can you please provide a reproduction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants