Closed (fixed)
Project:
Simple XML sitemap
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 May 2023 at 13:08 UTC
Updated:
19 Jul 2024 at 13:42 UTC
Jump to comment: Most recent
The form should not use overridden config, because this means the override will be saved to the database when submitting the form.
Add this to settings.php
$config['simple_sitemap.settings']['base_url'] = 'https://' . $main_host;
Browse to /admin/config/search/simplesitemap/settings.
The overridden URL is displayed in the form field.
Use ConfigFactory::getEditable() to load the config.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
prudloff commentedComment #4
gbyteYour reasoning makes sense but I wonder if you know of any other places (like core) known to do it your way? Also we'd have to scan the whole code base including submodules if this change is to be accepted.
Comment #5
prudloff commentedIt is explained here.
The core uses it for example in
GDToolkit::buildConfigurationForm()or inThemeExperimentalConfirmForm.#2910353: Prevent saving config entities when configuration overrides are applied also talks about preventing saving the configuration when it contains overrides.
Comment #6
gbyteThis makes sense. I'm happy to merge this as soon as all forms are taken under account (including submodules). Feel free to grab it!
Comment #8
elberHi I just rebased please revise.
Comment #10
gbyteCommited to dev. Thank you!