How to Remove home.php from X-Cart Canonical?

Just installed x-carg gold under www.bestpriceglasses.net, I found:

<link rel=”canonical” href=”https://www.bestpriceglasses.net/home.php” />

at homepage source code. How to remove home.php, just let the code as:

<link rel=”canonical” href=”https://www.bestpriceglasses.net” />

 

Easy to modify, in include/func/func.core.php

Find function func_get_canonical($smarty)

Below, replace…

                if ($cat) {
                    return $http_https_location . 'home.php?cat=' . $cat . $_page;
                } else {
                    return $http_https_location . 'home.php';
                }

to:

                if ($cat) {
                    return $http_https_location . 'home.php?cat=' . $cat . $_page;
                } else {
                    return $http_https_location;
                }