Copied to clipboard

Flag this post as spam?

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


  • Chris Koiak 700 posts 2626 karma points
    Apr 17, 2013 @ 15:49
    Chris Koiak
    0

    Why does UmbracoBeginForm render the full url in the action?

    Why does UmbracoBeginForm render the full url in the action?

    This is an issue for load balanced environments or off-loaded SSL environments. If the action is relative rather than absolute then the incoming hardware will route the request correctly.

    Is there anyway to use UmbracoBeginForm without absolute urls?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 17, 2013 @ 16:01
    Dan Diplo
    0

    Could it, in any way, be related to this issue? http://issues.umbraco.org/issue/U4-1321

    "When we compute the NiceUrl of a node we walk the tree up to the first node that has hostnames configured. Then, if none of those hostnames match the current request, we create an absolute url because, really, you're pointing to another site. To create the absolute url, we need to pick one of the domain, and we have no way to tell which. So we pick the last one..."

  • Stephen 767 posts 2273 karma points c-trib
    Apr 17, 2013 @ 16:06
    Stephen
    0

    @Dan... but... that's only when you're browsing www.example.com and you want the url of a node which is under domain www.another.com.

    @Chris: do you have domains configured? What is the value of useDomainPrefixes?

  • Chris Koiak 700 posts 2626 karma points
    Apr 17, 2013 @ 16:07
    Chris Koiak
    0

    Nope. The umbraco code doesn't look at the hostfiles at all, it just asks for Context.Request.Url.

    The problem is that's not always what the website is actually exposed as, that's just what that individual server sees the url as. The request is routed through SSL and load balancing hardware.

  • Chris Koiak 700 posts 2626 karma points
    Apr 17, 2013 @ 16:08
    Chris Koiak
    0

    @Stephen: No domains are configured and useDomainPrefixes is false

  • Chris Koiak 700 posts 2626 karma points
    Apr 17, 2013 @ 16:08
    Chris Koiak
    0

    Thanks for the responses guys!

  • Jerode 44 posts 159 karma points
    Aug 18, 2013 @ 23:17
    Jerode
    0

    Chris did you find an answer to your original question? 

    Is there anyway to use UmbracoBeginForm without absolute urls?
  • Jerode 44 posts 159 karma points
    Aug 22, 2013 @ 03:46
    Jerode
    1

    Shannon pushed a build out that corrected this. Working as expected now. Full URL is no longer rendered in the action.

Please Sign in or register to post replies

Write your reply to:

Draft