-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[Dashboard][Slug] Spaces and hyphens are being ignored. #3803
Comments
That's exactly the purpose of the slug https://en.wikipedia.org/wiki/Semantic_URL#Slug |
Well, I don't fully agree with @xrmx. In the link provided it is clearly stated whitespace characters [are] replaced by a dash or an underscore to avoid being encoded. So the hyphens/dashes being dropped and the white spaces not being replaced by dashes or underscores may be regarded as unexpected behavior. |
Yeah the implementation of this slug is buggy ( |
It sounds like the "expected results" aren't exactly on point. The expected result is that spaces are replaced, but dashes and hyphens stays. |
The awesome-slugify package seems to do the job quite simply. |
Superset version
0.20.3
Expected results
Actual results
Spaces and hyphens are being ignored.
Steps to reproduce
open the dashboard configuration GUI
add slug with spaces and hyphens
save the dashboard configurations.
Re-open the dashboard configurations again to review the previously saved state
the Spaces and hyphens would be missing from the slug.
P.S. All special characters are also being ignored (except underscore _).

The text was updated successfully, but these errors were encountered: