Skip to content

routeIdType doesn't allow numbers #1290

@mzeis

Description

@mzeis

When defining a route in etc/frontend/routes.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/App/etc/routes.xsd">
    <router id="standard">
        <route id="mzeis_test123" frontName="test123">
            <module name="Mzeis_Test123" />
        </route>
    </router>
</config>

The XSD doesn't allow to use numbers in the id attribute of the route node, see routes.xsd and routes_merged.xsd.

Is there a reason for doing that? Given that numbers are valid in the module names as well as routerIdType and I expect developers to use the name of the module for the route id in many cases I'd suggest to allow numbers (or better: the same pattern as for the module name).

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