Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Links Module [L...  Links Module not using FriendlyUrls
Previous Previous
 
Next Next
New Post 11/19/2005 3:35 AM
User is offline Jani Hyytiäinen
29 posts
www.codepic.fi
10th Ranked


Links Module not using FriendlyUrls 

When linking to a 'page', the FriendlyUrls are not being used even though the host settings would suggest so.

I would fix this (again) but where do I obtain the latest source?

I already did go here: http://www.dotnetnuke.com/Default.aspx?tabid=858

But the "Install w/Source" is in fact a PA without source...

 


Codepic Solutions
 
New Post 11/19/2005 7:23 PM
User is offline Site Admin
47 posts
www.dotnetnuke.com
10th Ranked






Re: Links Module not using FriendlyUrls 

Actually, the source is there, its just a packaging convention ( all of the project "Install w/Source" packages are done this way).  The file DNN_Links.resources contained within the package is, in fact, a zip file of the module source code.

I may be recruiting for a Project Lead for this module soon, Jani.  Maybe we should chat.

 
New Post 11/20/2005 3:42 AM
User is offline Jani Hyytiäinen
29 posts
www.codepic.fi
10th Ranked


Re: Links Module not using FriendlyUrls 

Hello,

Now that clears things a bit. I was in haste just looking for .sln or .vbproj in the package. Sorry about that :) *blush*

I found 'the' sources however in the dnn 3.0.13 package and went through the process and what I belive is that the module passes just integer value (tabid) to the core function DotNetNuke.Common.Globals.LinkClick which does not return FriendlyUrls. This is the case of course only when a link type is tab. More on this on my post at asp.net forums: http://forums.asp.net/1118063/ShowPost.aspx

So either links module should use the core functions to pass already a friendly url to linkclick or then linkclick should do it. I didn't run to support.dotnetnuke.us to post a bug report as I wanted to discuss on asp.net first about whose (or which function's) responsibility it is to generate the friendly Urls. Didn't get any answers yet though :)

However, the quick fix on links module side (fix tested working on dnn3.1.1):
(everything bolded are changes to links module dnn 3.0.13 codebase Links.ascx.vb starting at line 110)

''' -----------------------------------------------------------------------------
''' <summary>
''' formatURL correctly formats the links url
''' </summary>
''' <remarks>
''' </remarks>
''' <param name="Link">The link</param>
''' <returns>The correctly formatted url</returns>
''' <history>
''' [codepic] 11/20/2005 Added check for numeric 'Link' for support of FriendlyUrls
''' [cnurse] 9/23/2004 Moved Links to a separate Project
''' </history>
''' -----------------------------------------------------------------------------
Public Function formatURL(ByVal Link As String, ByVal TrackClicks As Boolean) As String

   If
IsNumeric(Link) Then
      Dim Url As String
= NavigateURL(Link)
      Return
Common.Globals.LinkClick(Url, TabId, ModuleId, TrackClicks)
   Else
      Return Common.Globals.LinkClick(Link, TabId, ModuleId, TrackClicks)
   End If

End
Function


The problem with non-friendly urls here and there in the system are that it'll confuse search engine robots, generate duplicate content (same page with multiple urls, non-friendly & friendly) which leads to rankings drop on search engines. In my opinion it does not matter if the ClickTracked Urls are non-friendly as long as the target Url is conforming to the host settings.

There are also alternative ways of tracking clicks without redirection and by showing the real Url instead of through LinkClick.aspx. This would further improve the search engine friendliness while giving the portal admin some valuable data on how the traffic flows.


So maybe we should chat?

Yes, certainly. I believe I'm on your MSN already but if this is not the case, just let me know and I'll ping you on MSN.

P.S. if anyone wants the fixed DLL, just let me know and I'll email it to you. It's dnn 3.0.13 codebase, compiled in .NET v1.1.4322. Successfully tested with dnn 3.1.1. However, if you're not desperate on your search engine rankings, I would wait for the official fix or maybe implement the fix on your own sources and compile.


Codepic Solutions
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Links Module [L...  Links Module not using FriendlyUrls
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


$7.16/mo - Powerful DotNetNuke Hosting
Powerful DotNetNuke Hosting starting at under $8/mo with FREE SQL 2005, FREE Installation and expert support.
www.re-invent.com
ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP