title: YII 2 Url Route not working with $_GET parameters
body: <p>I'm new to Yii2 and their URL ruling is kinda tricky. I have a <code>SiteController</code> with an action like this</p>
  
  <pre><code>public function actionSuccessStories($slug = null)
  {
      // some codes
  }
  </code></pre>
  
  <p>in my config i have this</p>
  
  <pre><code>'urlManager' =&gt; [
      'enablePrettyUrl' =&gt; true,
      'showScriptName' =&gt; false,
      'enableStrictParsing' =&gt; true,
      'rules' =&gt; [
          // Default routes
          '&lt;controller:\w+&gt;/&lt;id:\d+&gt;' =&gt; '&lt;controller&gt;/view',
          '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;' =&gt; '&lt;controller&gt;/&lt;action&gt;',
          '&lt;controller:\w+&gt;/&lt;action:\w+&gt;' =&gt; '&lt;controller&gt;/&lt;action&gt;',
  
          // page routes
          'success-stories/&lt;slug:\w+&gt;' =&gt; 'site/success-stories',
  
          // Remove 'site' parameter from URL
          '&lt;action:(.*)&gt;' =&gt; 'site/&lt;action&gt;',
      ],
  ],
  </code></pre>
  
  <p>in my view i have this to generate my url</p>
  
  <pre><code>Url::to(['site/success-stories', 'slug' =&gt; 'slug_value'], true);
  </code></pre>
  
  <p>my problem is <code>Url::to();</code> creates <code>success-stories?slug=slug_value</code></p>
  
  <p>instead of </p>
  
  <p><code>success-stories/slug/slug_value</code> am i doing this right? What i want to accomplish is the second format.</p>
  
  <p>I've read this question related to mine but it covers only modules
  <a href="https://stackoverflow.com/questions/37836863/yii2-url-manager-dont-parse-urls-with-get-parameter">Yii2 url manager don&#39;t parse urls with get parameter</a></p>