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

how to remove locale on the url #49

Closed
benyang2015 opened this issue Oct 25, 2017 · 2 comments
Closed

how to remove locale on the url #49

benyang2015 opened this issue Oct 25, 2017 · 2 comments

Comments

@benyang2015
Copy link

No description provided.

@h3llr4iser
Copy link
Contributor

I think you can create a new route without the locale parameter:

app_cms_shop_page_show:
    path: /page/{slug}
    methods: [GET]
    defaults:
        _controller: bitbag.controller.page:showAction
        _sylius:
            template: BitBagCmsPlugin:Page:show.html.twig
            repository:
                method: findOneByChannelAndSlug
                arguments:
                    - "expr:service('sylius.context.channel').getChannel()"
                    - "expr:service('sylius.context.locale').getLocaleCode()"
                    - $slug

@bitbager
Copy link
Member

bitbager commented Nov 6, 2017

Done on the master. Would be tagged and described in a few days 😉

@bitbager bitbager closed this as completed Nov 6, 2017
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