【发布时间】:2014-09-15 13:38:41
【问题描述】:
我想将人们从 /profile 重定向到 /profile/edit,我在 routing.yml 中尝试这样做:
another_route:
path: /profile
defaults:
_controller: FOSUserBundle:Profile:edit
route: fos_user_profile_edit
permanent: true
但是,这行不通(它仍然会通过该站点的内容进入 /profile 页面)。从我在 Symfony 页面上读到的内容来看,它应该可以工作..
【问题讨论】: