Skip to content

Missing required param on route without parameter #2367

@JulienDecruydt

Description

@JulienDecruydt

Reproduction

Not sure if that can be reproduce

Steps to reproduce the bug

This issue refer to another one : #845

In my case :

  • Go to a route with a parameter
  • Go back to the index page (that is a page without parameter)

Expected behavior

Expect to go to a page without parameter from a page with it.

Actual behavior

Uncaught (in promise) Error: Missing required param "slug"

Additional information

Hello,

Still have the same bug in NUXT ^3.12.4.
When clicking to go back to landing page, the issue is throw even if landing.vue doesn't need any param.

Structure folder :

- [slug]
  - index.vue
- landing.vue

Component button (nuxt-link behind) :

<CoreButton 
  :to="{
       name: 'landing',
   }" 
   text="Go to home"
/>

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