- Issue created by @anneke_vde
- Status changed to Needs review
about 1 year ago 2:16pm 19 September 2023 - 🇳🇱Netherlands anneke_vde
Attached is the patch of the proposed solution. Instead of deleting the state of the domain_path_pathauto setting the setting is saved as FALSE so the checkbox is stays disabled when saving the node.
- 🇪🇸Spain guardiola86
This patch checks if there's an existing alias for the domain id. If there's already one, "Generate automatic URL" will be disabled.
- 🇪🇸Spain guardiola86
Sorry, just saw you published one patch anneke_vde, I'll give it a try.
- 🇪🇸Spain guardiola86
@anneke_vde if I create a content, it generates an alias. If I edit again, the checkbox "Generate automatic URL alias" is checked, although it doesn't generate URLs with '-0' at the end. But if you change the title, the alias is updated.
In my case, I need the alias to stay the same, even if I change the title. - 🇳🇱Netherlands anneke_vde
@guardiola86 the pathauto module has a setting for if you want the alias to be the same 'Do nothing. Leave the old alias intact.'.
I tested this but on my local dev it doesn't work. In the module code of domain path I see code for it: UPDATE_ACTION_NO_NEW.Maybe better to create a new issue for that, this issue is about the setting not being saved.
- 🇪🇸Spain guardiola86
I had the setting "'Do nothing. Leave the old alias intact.'" enabled, yet it was creating new aliases when changing the title.