Frontpage for each domain setting override settings of all domains

Created on 19 April 2023, about 1 year ago
Updated 25 January 2024, 5 months ago

Drupal Version

10.0.7

Domain module version

2.0.x-dev

Expected Behavior

[What did you try to do? What URL did you use to do it?]
Assign a front page for each domain.

Actual Behavior

[What actually happened?]
The setting in one domain overrides all the settings of the other domains. On "Basic Site Setting" page, the current domain name always remains in "Default front page" section, it does not change to the domain selected in the "Domain Configuration". It always shows "This configuration will be saved for all domains without custom configuration and displayed in all languages." when the "Basic Site Setting" page opens.

Steps to reproduce

[A bullet list of steps to reproduce the error. Note if the error always happens or sometimes happens.]
1. Install domains
2. Enable modules: Domain, Domain Access, Domain Configuration, Domain Configuration UI, Domain Content
3. Add domain records
4. Open "System">>"Basic Site Setting", it shows "This configuration will be saved for all domains without custom configuration and displayed in all languages."
5. Switch to a different domain, the current domain name always remains in "Default front page" section.

šŸ› Bug report
Status

Active

Version

2.0

Component

- Domain Config

Created by

šŸ‡ØšŸ‡³China hongqing

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

Merge Requests

Comments & Activities

  • Issue created by @hongqing
  • šŸ‡®šŸ‡³India Shiv_Sharma

    Try to use domain_site_settings ā†’ module which provide the functionality to add different pages for different domains.

  • šŸ‡§šŸ‡ŖBelgium arwillame

    I got the same issue, the configuration is well recorded in stabase but i got the main front page on every domain..

    I found that in contrib/domain/domain_config/src/DomainConfigOverrider.php

    $config_override_exists never goes to TRUE because "$GLOBALS['config']" variable does not include my configurations.

    Here is a patch proposal.

  • Open on Drupal.org ā†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    Waiting for branch to pass
  • šŸ‡ØšŸ‡³China hongqing

    I want to test it with Drupal 10.0.8, but it seems an Ajax error prevents switching domains.

    Object { message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /admin/config/system/site-information?ajax_form=1\nStatusText: OK\nResponseText: ", name: "AjaxError", stack: "@http://a.mydomain.com/core/misc/ajax.js?v=10.0.8:184:32\n@http://a.mydomain.com/core/misc/ajax.js?v=10.0.8:1798:3\n" }
    ā€‹
    message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /admin/config/system/site-information?ajax_form=1\nStatusText: OK\nResponseText: "
    ā€‹
    name: "AjaxError"
    ā€‹
    stack: "@http://a.mydomain.com/core/misc/ajax.js?v=10.0.8:184:32\n@http://a.mydomain.com/core/misc/ajax.js?v=10.0.8:1798:3\n"
    ā€‹
    

    In addition to the Domain Site Setting module mentioned, which does not have compatibility with drupal 10, #2855763 have a discussion to assign a frontpage for each domain.

  • šŸ‡ØšŸ‡­Switzerland ruvus Chur

    @hongqing

    I've got the same error. You can use this patch from this issue. For me, it worked.
    https://www.drupal.org/project/domain/issues/3353885 šŸ› Call to undefined method Symfony\\Component\\HttpFoundation\\RequestStack::getMasterRequest() in Domain Config UI when editing domain-specific site information Needs work

  • šŸ‡©šŸ‡ŖGermany SteffenR Germany
  • šŸ‡ŖšŸ‡ŖEstonia drugan

    I have the same issue when having just one domain in the select list. So the AJAX redirect to the currently selected domain cannot be initiated. I want a domain admin to manage just this particular domain without granting them the "Set the default configuration for all sites" permission.

    If I manually add the domain_config_ui_domain query parameter in the browser address bar and reload the page, then it works as expected.

  • Pipeline finished with Failed
    5 months ago
    #82238
  • Pipeline finished with Failed
    5 months ago
    #82242
  • Pipeline finished with Failed
    5 months ago
    Total: 1121s
    #84348
  • Pipeline finished with Failed
    5 months ago
    Total: 230s
    #84672
  • Pipeline finished with Failed
    5 months ago
    Total: 1720s
    #84929
  • Pipeline finished with Failed
    5 months ago
    Total: 1050s
    #86906
  • Pipeline finished with Failed
    5 months ago
    Total: 1271s
    #86965
  • Pipeline finished with Failed
    5 months ago
    Total: 1302s
    #87049
  • Pipeline finished with Failed
    5 months ago
    Total: 1070s
    #87064
  • Pipeline finished with Failed
    5 months ago
    Total: 964s
    #87174
  • Pipeline finished with Failed
    5 months ago
    Total: 1251s
    #87218
  • Pipeline finished with Failed
    5 months ago
    Total: 1242s
    #88509
Production build 0.69.0 2024