Skip to content

this.$router.go without specified name or path #437

@simplesmiler

Description

@simplesmiler

It would be useful to have this.$router.go({ ... }) and v-link="{ ... }" assume the current state to be the target if name or path are not specified, thus updating params and query string on the current state and triggering data hook.

This can be achieved with this.$router.go({ name: this.$route.name, ... }) and v-link="{ name: $route.name, ... }", but only for named states.

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