Skip to content

Conversation

@BatJan
Copy link
Contributor

@BatJan BatJan commented Oct 23, 2025

Currently it's not possible to use characters like _ and - in aliases due to this check - At least that is was @nul800sebastiaan told me 😇

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes #20622

Description

Removed the generateAlias() in the alias constant to ensure characters like - and _ can again be used in document type/media type aliases.


This item has been added to our backlog AB#61214

Currently it's not possible to use characters like "_" and "-" in aliases due to this check - At least that is was @nul800sebastiaan told me 😇

Suggested fix for umbraco#20622
@github-actions
Copy link

github-actions bot commented Oct 23, 2025

Hi there @BatJan, thank you for this contribution! 👍

While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:

  • It's clear what problem this is solving, there's a connected issue or a description of what the changes do and how to test them
  • The automated tests all pass (see "Checks" tab on this PR)
  • The level of security for this contribution is the same or improved
  • The level of performance for this contribution is the same or improved
  • Avoids creating breaking changes; note that behavioral changes might also be perceived as breaking
  • If this is a new feature, Umbraco HQ provided guidance on the implementation beforehand
  • 💡 The contribution looks original and the contributor is presumably allowed to share it

Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution.

If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@nielslyngsoe nielslyngsoe added the state/sprint-candidate We're trying to get this in a sprint at HQ in the next few weeks label Oct 23, 2025
@nul800sebastiaan nul800sebastiaan changed the base branch from main to release/17.0 October 25, 2025 08:46
@nul800sebastiaan nul800sebastiaan changed the base branch from release/17.0 to main October 25, 2025 08:47
@nul800sebastiaan nul800sebastiaan added community/pr type/bug release/17.0.0 and removed state/sprint-candidate We're trying to get this in a sprint at HQ in the next few weeks labels Oct 25, 2025
@nul800sebastiaan nul800sebastiaan merged commit e893682 into umbraco:main Oct 25, 2025
25 of 28 checks passed
@nul800sebastiaan
Copy link
Member

Turns out this was already fixed in 17.0.0 but this fix is still good to go for 16.4 in the mean time. Thanks @BatJan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants