hook_domain_request_alter is not called when setRequestDomain is being called too early

Created on 20 September 2022, almost 2 years ago
Updated 16 August 2023, 11 months ago

Domain module version 8.x-1.0-beta6

Steps to reproduce.

  • Enable module country_path β†’ and core module language.
  • Activate Account administration pages in the Interface text language detection.

In this case, the domain is not detected correctly. However, I can only reproduce it on the server but not locally. I guess there are some other conditions that I could not detect. Perhaps the conifg_split is somehow related too because the hostname is being replaced on the server.

Looking deeper.

I figured out that when the plugin Account administration pages is activated it calls all processInbounds super early when some other modules are not loaded, in my case it calls CountryPathProcessor, which calls getActiveDomain where the setRequestDomain already initialized the active domain but as it happened too early the hook country_path_domain_request_alter is not being called so it just returns the first found domain entry and puts it to the cache.

I found some tasks describing a similar issue but related to the domain_config module β†’ .

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia nortmas Crimea/Thailand

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024