Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Click on portal logo redirects to DEFAULT portal alias, and not the current aliasClick on portal logo redirects to DEFAULT portal alias, and not the current alias
Previous
 
Next
New Post
11/26/2007 11:34 AM
 

Hi there!

I came accross the following problem:

I have a portal, with multiple aliasses for it. Let's say alias1 and alias2. I do mention that alias1 is the first one in the alias list.

I open the site in web browser using alias2, then I click the portal logo (the one on the upper-left corner). The site redirects to alias1 default page, though I have been surfing using alias2.

I looked over the Logo.ascx.vb file and seems to me that in the following line

the GetPortalDomainName(PortalSettings.PortalAlias.HTTPAlias, Request) function always returns the first alias in the list (i.e. the default one).

 

Meanwhile, the expected behavior will be to keep the current alias, I mean, alias2.

 

The example can be found on my website:

www.softmentor.eu (is the second alias)

www.softmentor.ro (is the first alias)

 

Your help is much appreciated!!

Thank you in advance,

Marius

 

hypLogo.NavigateUrl = GetPortalDomainName(PortalSettings.PortalAlias.HTTPAlias, Request) & "/" & glbDefaultPage

 
New Post
11/26/2007 2:28 PM
 

You're right. The way that is coded is bad behaviour.  It should just use the current HostName from the Request. It also should not add the default page but instead let the system pull up the default which is much better for SEO.

You should submit it as a bug at http://support.dotnetnuke.com

If you want to change it on your site you can use this code:

hypLogo.NavigateUrl = Request.Url.Scheme & "://" & Request.Url.Host


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Click on portal logo redirects to DEFAULT portal alias, and not the current aliasClick on portal logo redirects to DEFAULT portal alias, and not the current alias


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out