Skip to content

Sylius admin route prefix not customizable #274

@lruozzi9

Description

@lruozzi9

By the v1.8 of Sylius, the SyliusAdminBundle routes prefix can be modified thanks to the use of an environment variable (Sylius/SyliusAdminBundle@eb93fc1).

However, this is possible as long as you don't use plugins with admin routes. Many of these, in fact, define, in the routing configuration file, the admin prefix statically as part of the path (like this). Others don't use the prefix (like this) and let the user define the prefix as here. This second solution will be profitable because you could use the %sylius_admin.path_name% as a prefix.
What do you think about these? IMHO we should define a standard compatible with Sylius < 1.8, and for example, updates the routes.yaml file by using the correct prefix parameter or admin if is not defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions