Blogs

Fixing Error with ?base in Link

03 Aug

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.

tags: DNN, Tutorials
comments powered by Disqus

Content provided in this blog is provided "AS-IS" and the information should be used at your own discretion.  The thoughts and opinions expressed are the personal thoughts of Mitchel Sellers and do not reflect the opinions of his employer.

Connect with Mitchel

I hope the information here has been helpful. To stay connected you can also subscribe to blog updates via email, contact Mitchel about consulting services, or reach out for assistance via CodeMendor

Content Copyright

Content in this blog is copyright protected.  Re-publishing on other websites is allowed as long as proper credit and backlink to the article is provided.  Any other re-publishing or distribution of this content is prohibited without written permission from Mitchel Sellers.