grav-plugin-admin
grav-plugin-admin copied to clipboard
Folder Name Validation Not Accepting Leading Numbers?
Got an error of Invalid Input in "Folder Name".
when saving a page I'd created a couple years ago.
The folder name is user/pages/02.projects/16.other-projects/10.1918-patriotic-songs-and-hymns. I didn't change the folder name but it's kicking up an error now. I re-ran my perms.sh script to make sure it wasn't a permissions problem.
It seems like the problem was the folder's name leading with a number, 1918
. Grav doesn't seem to like folder names that begin with a number anymore? The new folder title is patriotic-songs-and-hymns-of-1918
and the problem goes away.
Grav is amazing and so is everyone who works on it. Ricardo is my hero.
Check out the blueprints/pages/default.yaml
(or in theme without /pages
:
rules:
slug:
pattern: '[a-zA-Zа-яA-Я0-9_\-]+'
By default, it should accept folder names with starting numbers in them.
I also tested this and by default, it does allow numbers in the first letter, so it may be an issue in the override.