I'm using YafBuildLink.GetLink from my Master page, which resides outside of the forums folder.
When the Master page is used, the real page is called "page.aspx"
Eventually the code runs through to YAF.Classes.UrlBuilder with a call to ScriptName.
I had to modify this to always return defaul.aspx. If none of the links would work.
Can anyone tell me what problems I may face going forward?
Code:
static public string ScriptName
{
get
{
return "/default.aspx";
//string scriptName = HttpContext.Current.Request.ServerVariables ["SCRIPT_NAME"].ToLower();
//return scriptName.Substring( scriptName.LastIndexOf( '/' ) );
}
}