-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Unable to have "-" in front of numbers for Permalink #352
Comments
Based on a quick code review (not tested yet), this only happens because "eme-2024" is already taken as a slug by something else in EME, so EME starts from the beginning (removing "-" and all numbers at the end of a slug and start with just "eme", then "eme-1" etc ...). |
I'm using "EME" just as an example. The full title of the event is "Children's Drawing Class 2024". However, EME does not allow my slug to be "childrens-drawing-class-2024". I can only put it as "childrens-drawing-class2024". I have tried it with various different names with the same result and I'm sure these names do not clash with other posts and events. Edit: Just to add that this occurred in Recurring Events. I have not tested it for Single events. |
In general slugs are made unique by adding '-' followed by a number to it. However, there was a small glitch when wanting to change the slug for an event that ended with "-" followed by a number (the change was ignored in that case). Now the change will go through (after checking the new slug is unique of course or making it unique by adding a number again). The next version will correct that, but it won't change your "problem". |
Describe the bug
If my Event Name is EME 2024, the slug will become "eme". If I type in "eme-2024" and save/update the event, the slug will revert back to "eme". Only if I put it as "eme2024" will the slug be saved.
Expected behavior
The slug with a "-" in front of numbers should remain after saving/updating.
Version info
PHP version: 8.0
EME version: 2.4.15
The text was updated successfully, but these errors were encountered: