OpenCart Change Pagination Links to SEO links
===

I am trying to replace my Pagination within OpenCart.

From this:

    $pagination->url = $this->url->link('product/search', $url . '&page={page}');
    // Spits out 
    www.site.com/index.php?route=product/search&filter_name=QUERY&page=2

to this:

    $pagination->url = $this->url->link('product/search', $url . '&page={page}');
    // Spits out 
    www.site.com/search?q=QUERY&page=2

The file is in ***/catalog/controller/product/search.php*** (OC 1.5 near line 438-444). The full block of code:

    $pagination = new Pagination();
    $pagination->total = $product_total;
    $pagination->page = $page;
    $pagination->limit = $limit;
    $pagination->text = $this->language->get('text_pagination');
    
    $pagination->url = $this->url->link('product/search', $url . '&page={page}');
    $this->data['pagination'] = $pagination->render();