Having both Webform and Pathauto installed, the webform edit page shows a Pathauto region with an 'Automatic alias' checkbox, and an alternative text box bellow to specify another path. So far so good.
The thing is that I uncheck the fist and fill the second with my custom path, and then when I return to this page to edit it once more, the checkbox is checked again.

It goes unnoticed, and if I submit the page in this state, it clears my custom path and generates another automatically, which is not the intended thing.

Comments

tritao’s picture

Status: Active » Closed (fixed)

Sorry, turns out this is just a Pathauto setting, an option that says:

"What should pathauto do when updating an existing content item which already has an alias?"
:)

DaPooch’s picture

Status: Closed (fixed) » Active

No, I don't think this is the correct action considering other pages wont automatically re check the auto-alias function the way webform appears to. The correct action should be to respect the update action set in the Pathauto config IF the "auto-alias" checkbox is checked. If you uncheck it that should save the checkbox state and respect the path you have indicated in the box. That's how all other nodes react.

DaPooch’s picture

Status: Active » Closed (duplicate)

Apparently this is an issue with Pathauto? Can anyone verify if the 2.x -dev branch addresses this issue?

monotaga’s picture

Pathauto 6.x-2.x-dev (2011-Dec-18) doesn't seem to fix this issue. I'm not sure what's going on w/this (using webform 6.x-3.18)

xaris.tsimpouris’s picture

Version: 6.x-2.6 » 7.x-3.20
Issue summary: View changes
Status: Closed (duplicate) » Active

I have installed webform latest version for D7 and the problem still exists. Whenever I save the form settings (Webform tab -> Form settings) path alias get lost, and path alias is reset to automatic (as like I saved the node with "Generate automatic URL alias" checked).

*each time* I save the for settings, I go to the "Edit" tab to reset the path alias settings.
We can't assume that this a pathauto issue, as it happens only within form settings and not under the edit tab

DaPooch’s picture

Yup. I can confirm I've got the exact same issue as xaris outlines above. Webform form settings changes reverts the path auto setting.

nodecode’s picture

I believe this is a longstanding issue with Pathauto that is on the cusp of being fixed (hopefully).
#936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls

quicksketch’s picture

@nodecode is correct, this is a problem with Pathauto. You can prevent the bug by installing the Pathauto Persist module until that patch is applied to Pathauto itself.

danchadwick’s picture

Status: Active » Closed (works as designed)