title: URL link for custom module in Prestashop 1.6
body: <p>I am currently developing a custom module.
  What I want is to have a nice URL, because right now it looks like this:</p>
  
  <pre><code>domain.com/flower-deliveries?city=Hamburg&amp;id_country=1&amp;country=Germany
  </code></pre>
  
  <p>I already added a new page to link to the custom module, the page name is flower-deliveries, but still I have the parameters that I have to "hide".</p>
  
  <p>Instead, of that link above I would like a URL like this:</p>
  
  <pre><code>domain.com/flower-deliveries-1-Hamburg-Germany.html
  </code></pre>
  
  <p>I tried 2 methods, but none of them worked..</p>
  
  <p>The first one, was to add a hookModuleRoutes in my controller, just like below:</p>
  
  <pre><code>public function hookModuleRoutes($params)
  {
      return array(
          'module-vpages-dpage' =&gt; array(
              'controller' =&gt; 'dpage',
              'rule' =&gt; 'flower-deliveries{-:id_country}{-:country}{-:city}.html',
              'keywords' =&gt; array(
                  'id_country' =&gt; array('regexp' =&gt; '[_a-zA-Z0-9_-]+', 'param' =&gt; 'id_country'),
                  'city' =&gt; array('regexp' =&gt; '[\w]+', 'param' =&gt; 'city'),
                  'country' =&gt; array('regexp' =&gt; '[\w]+', 'param' =&gt; 'country')
              ),
              'params' =&gt; array(
                  'fc' =&gt; 'module',
                  'module' =&gt; 'vpages',
                  'controller' =&gt; 'dpage'
              )
          )
      );      
  }
  </code></pre>
  
  <p>And then, in the controllers install:</p>
  
  <pre><code>$this-&gt;registerHook('moduleRoutes');
  </code></pre>
  
  <p>That didn't worked, so I tried to override the Dispatcher class, by adding a custom module route:</p>
  
  <pre><code>'module-vpages-dpage' =&gt; array(
      'controller' =&gt; 'dpage',
      'rule' =&gt; 'flower-deliveries{-:id_country}{-:country}{-:city}.html',
      'keywords' =&gt; array(
          'id_country' =&gt; array('regexp' =&gt; '[0-9]+', 'param' =&gt; 'id_country'),
          'city' =&gt; array('regexp' =&gt; '[\w]+', 'param' =&gt; 'city'),
          'country' =&gt; array('regexp' =&gt; '[\w]+', 'param' =&gt; 'country'),
      ),
      'params' =&gt; array(
          'fc' =&gt; 'module',
          'module' =&gt; 'vpages',
          'controller' =&gt; 'dpage'
      )
  ),
  </code></pre>
  
  <p>When using that custom rule, the link <code>http://domain.com/flower-deliveries?city=Hamburg&amp;id_country=1&amp;country=Germany</code> was tranformed in <code>http://domain.com/flower-deliveries?module_action=list</code> and it didn't worked and was redirecting me to the first page.</p>
  
  <p>Could some one tell me what am I doing wrong?
  I've spent hours of reading how it should be done and it should be just like the ones above..</p>
  
  <p>Thank you!</p>