Skip to content
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

Please help out with the docs #80

Open
rivaros opened this issue Jul 10, 2013 · 2 comments
Open

Please help out with the docs #80

rivaros opened this issue Jul 10, 2013 · 2 comments

Comments

@rivaros
Copy link

rivaros commented Jul 10, 2013

Could you extend the documentation with the following.

Saying, we have urls like http://domain.com/{_locale}/dashboard,

what is the right way to impement redirect from
http://domain.com (root) to http://domain.com/{_locale}/someurl, where {_locale} is locale guessed by Lunetics guesseres.

I really lack this explanation in the docs. Guess this is done in routing.yml.

Many thanks.

@peschee
Copy link

peschee commented Mar 4, 2014

Any updated on this? Some pointers would be greatly appreciated.

@dbu
Copy link
Collaborator

dbu commented Oct 25, 2014

in the symfony cmf, we do it like this:

home_redirect:
  pattern: /
  defaults:
    _controller: lunetics_locale.switcher_controller:switchAction
    route: someurl
    statusCode: 301
    useReferrer: false

someurl would be the route name to your dashboard or whatever you want the homepage to be.

does that make sense? anybody wants to do a PR to update the docs with this bit of information?

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

No branches or pull requests

3 participants