opencart 3 - 将主页重定向到类别

opencart 3 - redirect home page to category

[编辑:更正拼写错误] 我想要 Opencart 3

主页上的类别 (index.php?route=product/category&path=1)

我测试了几种方法都没有成功:

https://forum.opencart.com/viewtopic.php?t=18952(10岁) 没有工作编辑文件 /catalog/controller/common/home.php 和添加重定向: $this->redirect(HTTP_SERVER . 'index.php?route=product/category&path=1');

Opencart 2.3.0.2 how to change default index.php?route=common/home to index.php?route=magikblog/article(4岁) 没有帮助改变 $_['action_default'] = 'common/home';$_['action_default'] = 'product/category&path=1';$_['action_default'] = 'category_id=1';(这最后一次在 SEO 页面中工作没有问题)

请问我哪里错了?

把这个放在catalog\controller\common\home.php

的index()方法上面
$this->response->redirect($this->url->link('product/category', 'path=1'));
return