Created
December 14, 2015 13:39
-
-
Save przor3n/7e6e864f8a5d396115f8 to your computer and use it in GitHub Desktop.
Redirect to route in routes.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SomeRoute: | |
pattern: /someroute | |
defaults: | |
_controller: SomeBundle:Controller:action | |
AnotherRoute: | |
pattern: /anotherroute | |
defaults: | |
_controller: FrameworkBundle:Redirect:redirect | |
route: SomeRoute | |
permanent: true # this is for 301 | |
page: 5 # you can pass additional attributes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment