Skip to content
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

Can not insert alphanumeric slugs in the admin #955

Closed
sergixnet opened this issue Feb 3, 2017 · 12 comments
Closed

Can not insert alphanumeric slugs in the admin #955

sergixnet opened this issue Feb 3, 2017 · 12 comments

Comments

@sergixnet
Copy link

Hi I found an issue when I was setting an slug like this /27-abril-world-design-day/

It shows a validation error:

Falló la validación. 
El slug debe contener sólo caracteres alfanuméricos en minúsculas y guiones

In english:

Validation failed.
The slug should contain only alphanumeric characters in lowercase and hyphen

The error appears on normal and expert mode.

If I edit the markdown file directly it works well

@flaviocopes
Copy link
Contributor

Are you entering /27-abril-world-design-day/?

You should just enter 27-abril-world-design-day

@sergixnet
Copy link
Author

I'm just entering 27-abril-world-design-day

I have tested also in another site, and shows this error message in english:

Validation failed: 
A slug must contain only lowercase alphanumeric characters and dashes

@flaviocopes
Copy link
Contributor

I'm not able to replicate, I could save successfully.

Latest Grav + Admin? Can you copy/paste from here, to exclude the case an invisible char was copy/pasted from somewhere?

@sergixnet
Copy link
Author

In a fresh install Grav v1.1.15 - Admin v1.2.10, when trying to change a slug starting with a number:

(Animated gif)

peek 2017-02-04 18-00

@flaviocopes
Copy link
Contributor

Oh wait I replicated on a fresh install too

@flaviocopes
Copy link
Contributor

We have some confusion on the default page validation rules - I was testing a custom page blueprint. The default had the problem.

PR getgrav/grav#1292 should fix the issue, you can check it out.

@sergixnet
Copy link
Author

Thanks @flaviocopes , by curiosity, when we have de fix update avalaible?

@rhukster
Copy link
Member

rhukster commented Feb 4, 2017

@Sergiop79 did you test the PR? Does it work for you? When we have some confirmation that it works, we'll merge with develop. We're trying to get releases out weekly.

@sergixnet
Copy link
Author

@flaviocopes @rhukster
Sorry, I'm beginner contributing open source projects on github.

How can I test the PR?

One option could be copy the changes on the files directly of the fresh installation, but is there any better way to do that?

Thanks

@sergixnet
Copy link
Author

@flaviocopes @rhukster OK, After applying changes manualy on a fresh install it works well.

@rhukster rhukster closed this as completed Mar 8, 2017
@dyhla
Copy link

dyhla commented Apr 26, 2022

Slug can only contain alphanumeric or "-" characters, am getting that error when trying the create slung ....kindly help

@ricardo118
Copy link
Contributor

cant have numbers as the starting value, but works if the numbers are in the middle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants