I noticed after modifying webform fields, the form changes from manual url to automatic which results breaking url references to 404 page not found.

Comments

danchadwick’s picture

Status: Active » Postponed (maintainer needs more info)

I have no clue what you are referring to. Please supply a detailed description of the issue and detailed instructions for reproducing it.

je1’s picture

Content node has URL like 'home', so website.com/home gets you to the page.

Create webform with a field, say file field.

deselect auto url on the webform, set it to form123 for url

save it

go edit the webform and add a field

save it

the url changes to auto and it is not form123 any more, it is now the form title

danchadwick’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I either don't understand your instructions or can't reproduce the problem.

Here's what I did:
1) Enabled the Pathauto module to enable automatic URL generation
2) Edited the webform node to deselect "Generate automatic URL alias" and changed the "URL alias" to something other than the node title. I saved the changed to the node edit form.
3) I went to the webform / components tab and added a file component.
4) I returned to the webform node form, and the alias settings were unchanged.
5) I went back to the webform / components tab and added a text component.
6) I returned to the webform node form, and the alias settings were unchanged.

You either have some other cause of your issue, or you need to explain using the exact steps, using the exact words from the user interface what you mean, from a clean installation.

slippast’s picture

I have this problem. It occurs not when fields are added to a form but when the form is saved. I've worked around it for years.

I have several modules installed that handle URLs:
Pathauto
Redirect
Global Redirect

I remember to fix URLs but none of the other admins ever do so the URLs end up a little ugly for users and SEO. I keep telling myself that I'll dig into this issue someday...It's on my list.

I'll do some investigation in the upcoming days.

slippast’s picture

Status: Closed (cannot reproduce) » Active
danchadwick’s picture

This is a bug with the pathauto module, which has been fixed in the latest release. Install pathauto-7.x-1.3 or later.
#936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls

jh816’s picture

I experienced this problem, too. But not every time after I edit the Webform, the manual URL was changed to auto URL. But it is really annoying. I gave people the manual URL, then people came to me saying the site is not accessiable. Modifying the Webform is pretty common, like changing email content, adding email address, etc. But if you forget to check whether the URL remains the same, you may lose a potential customer...