-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Trying to clarify redirecting article #3071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This guide explains how to configure a redirect from one route to another | ||
without using a custom controller. | ||
Sometimes, a URL needs to redirect to another URL. You can do that by creating | ||
a new controller action which only tasks is to redirect, but using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Thanks @xabbuh ! |
$collection->add('root', new Route('/wp-admin', array( | ||
'_controller' => 'FrameworkBundle:Redirect:redirect', | ||
'route' => 'sonata_admin_dashboard', | ||
'permanent' => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a word on the permanent could improve understanding too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's on line 92
Thanks @wouterj - this reads very clearly! Sorry for the slow merge! |
The last weeks, we got a lot of false fixes for this articles. I've refactored
the article a bit to make it more clear.