Developer forum

Forum » Feature requests » Change action attribute in Forms for Editors to point to the root

Change action attribute in Forms for Editors to point to the root

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

In Forms for Editors the default Action is the 404 page and then JavaScript changes it to the real page. It currently generates this:

e.setAttribute('action', 'Default.aspx?ID=6554&PID=198');return true}

Note that Default.aspx is not prefixed with a slash. This causes issues when you're on a subpage (/something/myform for example) and when the HTML does not contain a base href that points to the root. In that case, we need to either manually set the attributes or for that particular page set a base href (we can't set one for all pages due to some issues with ARR and SSL).

The quick fix, however, seems to be to just prefix Default.aspx to point to the root like this:

e.setAttribute('action', '/Default.aspx?ID=6554&PID=198');return true}

Since Default.aspx always lives in the root, this should always work, right?

Imar


Replies

 
Nicolai Høeg Pedersen
Reply

Yes, we can make that change.

I've sent it to QA to be fixed.

BR Nicolai

 
Kristian Kirkholt
Reply

Hi Imar

The problem TFS#23349 "In forms for editors Prefix Default.aspx to point to the root: "/"   has now been fixed in version 8.8.1.4

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, thanks!