Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Symfony 3.4.7 no homepage defined and JMS I18N Routing prefix #27057

Closed
@odie2

Description

@odie2
Q A
Bug report? yes
Symfony version 3.4.7

I just updated Symfony from 3.4.6 and now can't get default locale prefix redirect, while it was working like a charm before. It displays Welcome Page as changed in #26041, while it should autoprefix with default locale like before.

composer.json

"jms/i18n-routing-bundle": "2.0.x-dev",

routing.yml

main_index:
    path:     /
    defaults: { _controller: AppBundle:Main:index }
    methods:  [GET]

config.yml

parameters:
    locale: pl
    app.languagesSlugs: [ en, pl ]

framework:
    default_locale:  "%locale%"

# JMS I18N Routing
jms_i18n_routing:
    default_locale: pl
    locales: "%app.languagesSlugs%"
    strategy: prefix

http://localhost:8000/ - Welcome Page (before redirect to http://localhost:8000/pl/)

My question is: should I wait to fix by JMS I18N Routing bundle or by Symfony or is there any workaround to force default language redirect?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions