Problem/Motivation

When the `Hide the default URL alias UI` setting is disabled, the domain path field does not appear in the sidebar, instead it appears in the normal content area

Steps to reproduce

Enable the module along with domain_path_pathauto, go to the domain path settings and then edit a piece of content and see the location of the domain path field

Proposed resolution

Update the following code snippet so that the location of the field isn’t determined by the hide path alias ui check

    // Hide the default URL alias for better UI.
    if ($this->config->get('hide_path_alias_ui')) {
      if (isset($form['advanced'])) {
        $form[DomainPathHelper::PATH_FIELD]['#group'] = 'advanced';
        $form['#after_build'][] = [$this, 'afterEntityFormBuild'];
      }
      unset($form['path']);
    }
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lincoln-batsirayi created an issue. See original summary.

mably made their first commit to this issue’s fork.

mably’s picture

Status: Active » Needs review

@lincoln-batsirayi added a new "use_advanced_group" configuration option.

Can you check that it works as desired in Tugboat?

lincoln-batsirayi’s picture

Status: Needs review » Reviewed & tested by the community

I’ve tested this and confirmed it working on my sandbox site and also our main site :)

  • mably committed b136b075 on 2.x
    feat: #3567963 The domain path field does not appear in the sidebar if...
mably’s picture

Status: Reviewed & tested by the community » Fixed

Merged.

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.