when we go to /admin/config/search/xmlsitemap/settings
And in advance setting form changed the baseurl from http://default/ to my site url.
After saving configuration the configuration is not saved. When we come back to /admin/config/search/xmlsitemap/settings and checked the advance form baseurl its again changed to http://default/.
When i debugged the XmlSitemapSettingsForm.php it is not coming into submitForm function on clicking on save configuration.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | xmlsitemap-base-url-config-2990194-10-8.x.patch | 8.16 KB | eduardo morales alberti |
Comments
Comment #2
shreya shetty commentedWorks as expected. I installed this module and under ADVANCED SETTINGS - Default base URL had prefilled value which was my site name and that will be the base URL of your website
Comment #3
mahtab_alam commentedCan you try this in your local enviornment with using virtual host. By default it will be http://default and if you rename that base url field the value is not saved.
Comment #4
natemow commentedHere's a patch to the alpha3 release to change xmlsitemap_base_url from a State setting to a configurable/exportable Config value. To override the new variable in settings.php, use this:
$config['xmlsitemap.settings']['xmlsitemap_base_url'] = 'https://example.com';Comment #5
natemow commentedComment #6
dave reidI think I agree and I want to take a deeper look if it makes sense to move this to config. In the meantime, we'll need to have a patch that is against 8.x-1.x branch. Also feel free to rename the config item 'base_url' instead of 'xmlsitemap_base_url' since we're already in the xmlsitemap.settings config object.
Comment #7
eduardo morales albertiAdd patch, change name to base_url instead of xmlsitemap_base_url and added it to the install to get the old value from the Drupal state.
Comment #8
eduardo morales albertiUpdated patch, change status to needs review.
Comment #10
eduardo morales albertiFix patch to pass phpunit tests.
Comment #11
shreyal999 commentedThe module is working as expected, have installed the module and updated the url path for 'Default base URL' and 'Sitemap cache directory' and even on saving the values are what i have set it to be. Couldn't reproduce the issue.
Comment #12
vuilI closed it because of duplication (see related issues), and it is overridden by them.