-
Notifications
You must be signed in to change notification settings - Fork 76
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
Make redirect url fallback configurable #190
base: master
Are you sure you want to change the base?
Changes from 2 commits
2bfbe41
e961202
92ba4e6
3b49d2c
ef72908
741ca10
ab6eb14
be1e60d
7537a58
08aef0e
068dbb0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ public function getConfigTreeBuilder() | |
->prototype('scalar')->end() | ||
->end() | ||
->scalarNode('active_theme')->defaultNull()->end() | ||
->scalarNode('redirect_fallback')->defaultValue('homepage')->end() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, fair point, I will change that to use null as default as prepared in ThemeController.php already. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
->arrayNode('path_patterns') | ||
->addDefaultsIfNotSet() | ||
->children() | ||
|
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.
default route probably should be the name of an actual route now, no?
so I think what we should probably do us to allow null for $defaultRoute and then when we do the redirect, check if its null and in that case fallback to 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.
Yeah, that's a good idea. I will change that. :)