Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nalle Jacobsson 32 posts 55 karma points
    Mar 16, 2010 @ 12:57
    Nalle Jacobsson
    0

    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


  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 19, 2010 @ 23:28
    Peter Dijksterhuis
    1

    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

  • Nalle Jacobsson 32 posts 55 karma points
    Mar 22, 2010 @ 23:01
    Nalle Jacobsson
    0

    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

     

  • jonok 297 posts 658 karma points
    Mar 23, 2010 @ 04:03
    jonok
    0

    Hi Nalle,
    Just thought I'd say that this is happening to me too on postbacks, not sure why its occurring though.

  • Nalle Jacobsson 32 posts 55 karma points
    Mar 24, 2010 @ 00:13
    Nalle Jacobsson
    0

    Hi Jonok,

    Thanks for letting me know it's not just me =)

    I'll add it as a bug on Codeplex tomorrow.

    /N

Please Sign in or register to post replies

Write your reply to:

Draft