// Use this in a lifecycle method this.$router.push('/login');
// nuxtjs this.$router.push({ name: 'routename' })