Problem/Motivation

At /admin/config/search/path/settings the Media checkbox is checked and disabled, so it can not be disabled.

The description above says:

Enable to add a path field and allow to define alias patterns for the given type. Disabled types already define a path field themselves or currently have a pattern.

But I have no alias pattern for Media and even deleted all aliases for media. Still I can not disable it.

I think in most Drupal installations there should be no media aliases? And at least you should be able to delete it.
Why isn't that possible?

If

Disabled types already define a path field themselves

applies, isn't that a strange condition then, if in most cases you wouldn't want aliases for media (unless you're maybe using the media setting for media canonical URLs)?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

anybody created an issue. See original summary.

anybody’s picture

Status: Active » Closed (works as designed)
Related issues: +#3251452: Unable to unselect Content and Taxonomy term entity types

Sorry just found #3251452: Unable to unselect Content and Taxonomy term entity types after creating this one. The comments in #3 and #4 explain it technically, still I wonder how to disable automatic URL alias generation for media.

Creating a new media entry no new media alias seems to be created so possibly the existing ones were from history. In that case it would be okay this way. If anyone experiences media aliases being created without having a pattern, feel free to reopen this.

Sorry for the noise!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.