Undefined property: query in DomainUniquePathAliasGenerator.php

Created on 28 May 2024, about 1 month ago
Updated 31 May 2024, about 1 month 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.69.0 2024