Skip to content

Not possible to use _ in Document type/Media type aliases anymore? #20622

@BatJan

Description

@BatJan

Which Umbraco version are you using?

16.2.0

Bug summary

In our own "Baseline" we have a setup where we for some certain aliases use an underscore in the alias name. However when I needed to add more aliases using the underscore in Umbraco 16.2.0 I found out that in the UI it's currently not possible. Not sure when or why this has been introduced but I consider it a bug and probably not the best UX either since whenever I type the _ character and want to write more after adding it it disappears and the letter written after it becomes uppercase. I know it's also an issue on 16.3.0, which I made @nul800sebastiaan test out 😇 - Seb also told me that he can create aliases containing underscores just fine using the Management API. So it seems it's only in the frontend where this happens.

So if I enter an alias of "my_little_settings" it will be forced to be "myLittleSettings"... as soon as I enter "my_" then when I enter "my_l" it instantly becomes "myL"... Please see the video attached.

Update: Turns out it happens when using "-" too. So there are probably more scenarios to consider around this.

alias-underscore-bug.mp4

Specifics

It happens to me when trying to add "underscores" in aliases when adding fields to document types and media types - I imagine it's the same logic being used both places and I guess it will happen anywhere in the UI where it's possible to add an alias like templates, document types and media types themselves etc.

Steps to reproduce

Please see the video attached in the summary.

Expected result / actual result

It should be possible to use underscores.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions