Skip to content

v3.17.7 Router: scrollBehaviorType: 'smooth' always scroll to top smoothly #32620

@andreyshivas

Description

@andreyshivas

Environment

  • Operating System: Darwin
  • Node Version: v24.0.2
  • Nuxt Version: 3.17.7
  • CLI Version: 3.26.1
  • Nitro Version: 2.11.13
  • Package Manager: pnpm@10.13.1
  • Builder: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-bj4qfgh3?file=nuxt.config.ts,pages%2Ftest.vue,pages%2Findex.vue,app.vue,layouts%2Fdefault.vue

Click on the links at the bottom of the page

Describe the bug

In Nuxt 3.17.6, this configuration only worked for hash links: https://nuxt.com/docs/guide/recipes/custom-routing#scroll-behavior-for-hash-links

In Nuxt 3.17.7:
Now, when navigating between pages, scrolling to the top occurs with animation.

This is likely due to these changes: #32376

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions