- 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.7last update
over 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 - šŖšŖ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. - Merge request !65Atomatically redirect to the first domain in the "Domain" select list ā (Open) created by drugan