title: yii2 redirect from custom module to base controller
body: <p>I use dektrium user registration form.
  registration link generates <code>domain.com/user/register</code> link
  but it's not base user model, this module is located inside vendor/dektrium folder.
  Now in base controllers folder I have UsersController with view action.
  and after finishing registration I want to start view action of UsersController to view users page.</p>
  
  <p>This is registration module code</p>
  
  <pre><code>public function actionRegister()
      {
          if (!$this-&gt;module-&gt;enableRegistration) {
              throw new NotFoundHttpException;
          }
  
          $model = $this-&gt;module-&gt;manager-&gt;createRegistrationForm();
  
          if ($model-&gt;load(\Yii::$app-&gt;request-&gt;post()) &amp;&amp; $model-&gt;register()) {
              return $this-&gt;redirect(array('users/'.$model-&gt;username));
          }
  
          return $this-&gt;render('register', [
              'model' =&gt; $model
          ]);
      }
  </code></pre>
  
  <p>As you can see I've put there this code</p>
  
  <pre><code>return $this-&gt;redirect(array('users/'.$model-&gt;username));
  </code></pre>
  
  <p>Which is supposed to take user to it's own page at <code>domain.com/users/username</code>.
  But unfortunatelly url is forming in the following way</p>
  
  <pre><code>domain.com/user/users/username
  </code></pre>
  
  <p>How can I fix this problem and direct user to <code>domain.com/users/username</code> page ?</p>