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.
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.
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
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
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.
It will probably cause problems if you run umbraco in a virtual directory.
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
Nice one Richard - good to know.
is working on a reply...