Undefined property: query in DomainUniquePathAliasGenerator.php

Created on 28 May 2024, 6 months ago
Updated 31 May 2024, 6 months ago

Problem/Motivation

Undefined property: Symfony\Component\HttpFoundation\RequestStack::$query in Drupal\domain_unique_path_alias\DomainUniquePathAliasGenerator->createEntityAlias() (line 171 of modules/contrib/domain_unique_path_alias/src/DomainUniquePathAliasGenerator.php).

Steps to reproduce

Go to admin panel, add new node, and click save.

Proposed resolution

To change way domain_id is being fetched - instead of getting this from the actual request do get it from domain_source field of an entity via DomainUniquePathAliasHelper::getPathDomainId

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024