Skip to content

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

Merged
merged 1 commit into from
Dec 17, 2013

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Oct 18, 2013

Q A
Doc fix? yes
New docs? yes
Applies to all
Fixed tickets #3070

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.

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

task

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@wouterj
Copy link
Member Author

wouterj commented Oct 18, 2013

Thanks @xabbuh !

$collection->add('root', new Route('/wp-admin', array(
'_controller' => 'FrameworkBundle:Redirect:redirect',
'route' => 'sonata_admin_dashboard',
'permanent' => true,
Copy link
Contributor

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

Copy link
Member Author

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

@weaverryan weaverryan merged commit 7c59247 into symfony:2.2 Dec 17, 2013
@weaverryan
Copy link
Member

Thanks @wouterj - this reads very clearly! Sorry for the slow merge!

@wouterj wouterj deleted the clearify_redirectcontroller branch December 17, 2013 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants