Problem/Motivation

Aliases get added even if "page" setting is set to FALSE.

Steps to reproduce

  1. In URL Path Settings, check "Allow users to post submission from a dedicated URL." and add a path in "Webform URL alias".
  2. Edit the webform again and uncheck "Allow users to post submission from a dedicated URL."
  3. Delete the aliases
  4. Edit and Save the webform (w/o doing any other modifcations)

Expected result

No new aliases.

Result

Aliases are added.

Proposed resolution

  1. Make the "Webform URL alias" field empty when "Allow users to post submission from a dedicated URL." is unchecked
  2. Or, on submit, take "page_submit_path" into consideration only if "page" is TRUE.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mfernea created an issue. See original summary.

  • jrockowitz committed dc08def on 2857639-page-settings-and-path-conflicts
    Issue #2857639: Conflicting settings page vs page_submit_path
    
jrockowitz’s picture

Status: Active » Needs review
FileSize
2.49 KB

I agree and the attached patch should resolve this issue.

  • jrockowitz committed 9f511d5 on 8.x-5.x
    Issue #2857639 by jrockowitz: Conflicting settings page vs...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download and review the latest dev release.

mfernea’s picture

Status: Fixed » Closed (fixed)

It 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.