The slugify in Dashboard compoent problem

hey everyone, :neutral_face:
im adding some filters in my dashboard which name in Chinese,
but the dashboard’s url will be like

and there comes some bugs…(only when filter are more than one)
I find metabase/lib/formatting.js
export function slugify(name: string) {
return name && name.toLowerCase().replace(/[^a-z\u0400-\u04ff0-9_]/g, “_”);

why should the str need to slugify like that? may a random id for the filter is better?

Hi @caobuzheng
There’s an open issue with any non-ASCII named filters: - go upvote by clicking :+1: on the first post.
Also check 10982 for a workaround.
The code for handling slugs is pretty old, and was created at a time, when dashboards and questions also had slugs instead of IDs.
If you know how to fix the issue, then please submit a PR :wink: