Copied to clipboard

Flag this post as spam?

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


  • dandrayne 1138 posts 2262 karma points
    Jun 21, 2010 @ 12:55
    dandrayne
    1

    4.1 Compatibilty

    Just a note for anyone that needs to use this in 4.1...

    In 4,1 the umbracoPath setting in the web.config has a tilda, which causes a 404 error when attempting to search for an address on the map.

    As a quick fix you can just change umbracoPath  from "~/umbraco" to "/umbraco" in the web.config.  Can't be sure that this won't cause issues elsewhere, but I haven't seen any so far.

    Dan

     

  • David Conlisk 432 posts 1008 karma points
    Jun 21, 2010 @ 18:13
    David Conlisk
    0

    That's excellent - works for me too. I haven't seen any side effects of removing the tilda from the umbracoPath either but I'll post back here if I do.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jun 21, 2010 @ 19:15
    Morten Bock
    0

    It will probably cause problems if you run umbraco in a virtual directory.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Jun 21, 2010 @ 19:58
    Richard Soeteman
    1

    Hi all,

    You can use the VirtualPathUtilty Class to fix this. Using the ToAbsolute Method of this class it will work in both 4.1 and 4.0. Below a method that I use

     

     

    public static string FormatUrl(string  url)

    {

     

    return VirtualPathUtility.ToAbsolute(umbraco.GlobalSettings.Path + url);

    }

    Cheers,

    Richard

  • David Conlisk 432 posts 1008 karma points
    Jun 22, 2010 @ 15:53
    David Conlisk
    0

    Nice one Richard - good to know.

Please Sign in or register to post replies

Write your reply to:

Draft