Fixing Error with ?base in Link
It was brought to my attention this morning by a reader of this site that in DotNetNuke 4.5.2 and later that the querystring ?base is added after the URL in the link from a sites logo. I am not sure of the reasoning behind this however I do know that some individuals are seting event log errors due to this added parameter. Luckly the fix is VERY simple.
To fix this isuse you will need to modify the /Admin/Skins/Logo.ascx.vb file on your DotNetNuke Installation, you simply have to remove a few charasters from the line that sets the navigate URL. Below is the before and after.
Change This:
hypLogo.NavigateUrl = GetPortalDomainName(PortalSettings.PortalAlias.HTTPAlias, Request) & "/" & glbDefaultPage & "?base"
To This:
hypLogo.NavigateUrl = GetPortalDomainName(PortalSettings.PortalAlias.HTTPAlias, Request) & "/" & glbDefaultPage
Once you save that file you should then notice the appropriate link in your logo. I am not sure WHY this is the way it is, but there doesn't appear to be any issue with this modification as it is simply taking you to the root.
Posted by Mitchel on Friday, August 03, 2007
Click here to post a comment