PrestaShop/PrestaShop — pull request #2032 by zimmi1 (2014-08-03 14:18:44+00:00)
Title: [*] FO Dynamically get excluded_key in FrontController->canonicalRedirection()

May be example will be easier to undersand: if you go to example.com/fr/content/category/1-hoooome, you are redirected to example.com/fr/content/category/1-home?id_cms_category=1, because id_cms_category is not in the excluded_key array. Better is it to fill this excluded_key array dynamically, especially as now there is also the possibility for module to define custom routes through hookModuleRoutes, which may contain any kind of parameters, that shouldn't appear again in canonical url. I'm quite sure of the idea, but quite unsure of the way I've done it... especially I do not knwo how it will behave with multishop feature on. Hope it can help!