Redirect in OpenCart
<p>Hi i have custom controller in admin page, and i want to redirect after some function is done. Here is my code:</p>

<pre><code>public function save(){
    //some operations
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: ".htmlentities ($this-&gt;url-&gt;link('sale/order', 'token=' . $this-&gt;session-&gt;data['token'] .  '', 'SSL')));
}
</code></pre>

<p>as the result i see this in browser:</p>

<pre><code>http://mystore/admin/index.php?route=sale/order&amp;amp;amp;token=jYOWKAUGO3Xx20OcoRK00N3CFHqJJato
</code></pre>

<p>Instead of:</p>

<pre><code>http://mystore/admin/index.php?route=sale/order&amp;token=jYOWKAUGO3Xx20OcoRK00N3CFHqJJato
</code></pre>

<p>How can i fix it?</p>