title: I cannot get an absolute url in my yii2 form action. It keeps creating a relative url and then appending the absolute url to it
body: <p>I can't get an absolute url in my yii2 form action. It keeps creating a relative url and then appending the absolute url to it.</p>
  
  <p>MY code is below:</p>
  
  <pre><code>&lt;?php $formURL = "https://www.example.com"; ?&gt;
  &lt;?= Html::beginForm([\yii\helpers\Url::to($formURL, $scheme = true)], 'post', ['enctype' =&gt; 'multipart/form-data']); ?&gt;
  </code></pre>
  
  <p>Instead of it out putting the below:</p>
  
  <pre><code>&lt;form action="https:www.example.com" method="post" enctype="multipart/form-data"&gt;
  </code></pre>
  
  <p>It produces the following:</p>
  
  <pre><code>&lt;form action="/web/index.php?r=https:www.example.com" method="post" enctype="multipart/form-data"&gt;
  </code></pre>
  
  <p>Any help on this would be greatly appreciated!</p>