Query parameters on the front page are not handled correctly

Created on 20 June 2024, 6 months ago

Problem/Motivation

When the front page is visited with a query string, the selected domain is not correctly identified in the hook_domain_request_alter hook. This leads to the default domain being selected. When used in combination with the Domain Config module to alter the front page, the wrong front page is loaded from config. When Domain Access is checked, a 403 is returned because the loaded page is not accessible from the requested domain.

Steps to reproduce

1. Enable and configure Domain Access and Domain Config
2. Enable Domain Config for Basic site settings
3. Configure two country path domains: one default, one alternate
4. Configure Configuration > Basic site settings > Default front page with a node for the default country path domain
5. Configure the Default front page with a different node for the alternate country path domain
6. Navigate to the alternate country path domain with a query string added
7. Note the 403 forbidden error

Proposed resolution

The hook needs to be updated to remove the query string before setting the detected domain.

πŸ› Bug report
Status

Active

Version

1.6

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andycarlberg

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024