Skip to content

Not able to update query parameter from navigation guard #2624

Open
@nirmalraghavan

Description

@nirmalraghavan

Version

3.0.2

Reproduction link

jsfiddle.net/bqaxhgkc

Steps to reproduce

Inside beforeEnter try to modify query parameters by passing next({ query: {'my-param': 'new-value'} })

What is expected?

Query parameter will be updated with the new value and the URL will also update.

What is actually happening?

URL still having the same old value for my-param.


Even though the query parameter value is not updated in the URL, this.$route.query['my-param'] value is updated with the new value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed on 4.xThis issue has been already fixed on the v4 but exists in v3has workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions