I managed to solve it, very simple, but I'll leave it here for someone who is looking for it too:
Prestashop Version 1.6.1.24
File: themes> YOUR THEME> history.tpl
/ * line 89 * /
<a class="btn btn-default button button-small" href="javascript:showOrder(1, {$order.id_order|intval}, '{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}');">
change to:
<a class="btn btn-default button button-small" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}">
That way, the order details button will open it on a new page.
If anyone finds any error in this change, please reply to this topic.
We are a family owned and operated business.