For some reason Umbraco appends "?" to all my form actions. This is not correct and annoying, because after a postback it's visible in the browser address field.
Example:
I request "/blogs/toplist" When I check the source, form action is set to "/blogs/toplist?" when it should be just "/blogs/toplist"
If I trigger a postback, I will end up at "/blogs/toplist?"
check the action of your form. Is it GET or POST? It should be POST. If you use GET, then all formfields will be sent in the querystring, thus resulting in a ? in the URL.
Umbraco appends "?" to page form action
I'm using Umbraco 4.0.3 with extensionless url:s.
For some reason Umbraco appends "?" to all my form actions. This is not correct and annoying, because after a postback it's visible in the browser address field.
Example:
I request "/blogs/toplist"
When I check the source, form action is set to "/blogs/toplist?" when it should be just "/blogs/toplist"
If I trigger a postback, I will end up at "/blogs/toplist?"
Why does this happen, and is there a workaround?
Thanks,
/Nalle
Hi,
check the action of your form. Is it GET or POST? It should be POST. If you use GET, then all formfields will be sent in the querystring, thus resulting in a ? in the URL.
Does this help?
Peter
Hi Peter,
I double checked, and action is POST.
I have no idea why this is happening, I take it that this is not normal for Umbraco? Must be something with my installation then.
For now I have resorted to removing the "?" using javascript. Not very elegant, but it solves the problem.
/N
Hi Nalle,
Just thought I'd say that this is happening to me too on postbacks, not sure why its occurring though.
Hi Jonok,
Thanks for letting me know it's not just me =)
I'll add it as a bug on Codeplex tomorrow.
/N
is working on a reply...