Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Aliases get added even if "page" setting is set to FALSE.
Steps to reproduce
- In URL Path Settings, check "Allow users to post submission from a dedicated URL." and add a path in "Webform URL alias".
- Edit the webform again and uncheck "Allow users to post submission from a dedicated URL."
- Delete the aliases
- Edit and Save the webform (w/o doing any other modifcations)
Expected result
No new aliases.
Result
Aliases are added.
Proposed resolution
- Make the "Webform URL alias" field empty when "Allow users to post submission from a dedicated URL." is unchecked
- Or, on submit, take "page_submit_path" into consideration only if "page" is TRUE.
Comment | File | Size | Author |
---|---|---|---|
#3 | conflicting_settings-2857639-2.patch | 2.49 KB | jrockowitz |
|
Comments
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI agree and the attached patch should resolve this issue.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI committed the patch. Please download and review the latest dev release.
Comment #6
mfernea CreditAttribution: mfernea at AmeXio commentedIt works ok now. No aliases are added when "Allow users to post submission from a dedicated URL." is unchecked, even if "Webform URL alias" and / or "Confirmation page URL alias" have a value.