-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Can't Create URLs Shorter than Three Characters #2910
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
Comments
It's not a URL's problem. The route id doesn't allow dashes but frontName does, you can set: |
@namluu You are correct! You can have dashes in the |
@astorm Thanks for pointing this out. I updated the routing topic with character restrictions. BTW, in your example XML, you're using a path to the XSD instead of a URN. |
Hi @astorm Is it still an issue for you? |
Route Front Name has this limitation by mistake. It should be fixed. |
Internal ticket MAGETWO-48333 was created to fix this issue. |
Any update on this issues? /cc @piotrekkaminski |
This is not yet fixed. Increased priority but I don't expect the fix in nearest release. |
This was fixed in the scope of another ticket (MAGETWO-48495) and is in the latest develop branch. It will be included in the next release. |
[thunder] MAGETWO-93758: [Backport 2.2.x] Make cron:run CLI command react on cron disable configuration
If I attempt to create a new route for a module, and that module's front name is less than three characters
Magento's XML validator complains
It looks like the regular expressions for validating this element (
[A-Za-z0-9_]{3,}
) demands afrontName
be at least three characters.Based on the behavior of other PHP frameworks (which allow segments shorter than three characters), this is a bug and should be fixed.
The text was updated successfully, but these errors were encountered: