Home

Issue: 3105

Preserving scroll position using alias to same route

[issue link]

We use a lot of ‘friendly url’ params on the same page using aliases, (e.g. /posts/recent is an alias for /posts/). When these aliases are triggered with router.replace(url), savedPosition in the router’s scroll behavior is null. Is there a way to preserve scroll position without adding hashes to the url and without making alias routes child routes?

This question is available on Nuxt.js community (#c2688)