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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorDefault Editor FckEditor does not support friendly urlsDefault Editor FckEditor does not support friendly urls
Previous
 
Next
New Post
4/18/2007 7:12 AM
 

It appears that the FckEditor in DNN 4.5.1 does not support friendly urls. This is a show stopper for my clients that are not html savy. When you add a link to a page on your site it always uses the linkclick.aspx anti-search engine and anti-friendly url link. There appears to be no setting to change this default behavior. When looking into the code for fcklinkgallery.aspx I can't see where the code can even right a user freindly url for internal page linking. Example    I want this "text" to link to my home page. With friendly urls on this link should be "/home/tabid/36/default.aspx"  instead it is "linkclick.aspx?some extra garbage querystring stuff&thereal link"   

How do I fix this? Is there a patch?

By default all internal links created in fckeditor should be friendly urls if freindly urls are on and if friendly urls are off then the link should be the real link, then if for some resean you need to track the linkclick then that should be an option not the default. As of right now you have to change the content source to use the correct link. 

I don't know how to tell you that for proper SEO links need to be friendly urls and actually link to the correct page not to the poor concept of linkclick.aspx which is going backword in technology instead of forward. (By the way with Ajax and all and PostBacks to track a link you just add an onclick event to the link so screen readers and spiders see the correct url and browsers with javascript are sent to the linkclick page. not change the link to something used 10 years ago in classic asp before people knew that web applications could be SEO freindly

Please Help as I love FckEditor and do not want to reimplement FreeTextbox

Thanks for any help

 
New Post
4/18/2007 1:47 PM
 

FCKeditor provider does not build links on its own. It uses the standard URL control provided by the DNN core. This control is used by most modules that need URLs (Internal or external)

As I remember, the control only uses a non friendly URL when it needs somekind of non public autorization (Secure folders or database folders)


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
4/18/2007 5:37 PM
 

thanks for the quick response. But it does appear that the FCKeditor provider uses a dnn url control it does build the link when it returns the url here is example:

 

Private Sub cmdSelect_Click(ByVal sender As Object, ByVal e As EventArgs)
            Dim textArray As String() = Me.PortalSettings.Version.Split(New Char() { "."c })
            Dim num As Integer = IntegerType.FromString(textArray(0))
            Dim num2 As Integer = IntegerType.FromString(textArray(1))
            Dim str As String = Me.ctlURL.Url
            Dim flag As Boolean = False
            If (StringType.StrCmp(Strings.Left(str, 7).ToLower, "fileid=", False) = 0) Then
                If ((((num = 3) And (num2 >= 0)) And (num2 <= 2)) Or ((num = 4) And (num2 = 0))) Then
                    Dim controller As New FileController
                    Dim text2 As String = str.Substring(7)
                    Dim fileById As FileInfo = controller.GetFileById(IntegerType.FromString(text2), Me.PortalSettings.PortalId)
                    If (Not fileById Is Nothing) Then
                        str = (fileById.Folder & fileById.FileName)
                    End If
                Else
                    Dim controller2 As New FileController
                    Dim text3 As String = str.Substring(7)
                    Dim info2 As FileInfo = controller2.GetFileById(IntegerType.FromString(text3), Me.PortalSettings.PortalId)
                    If ((Not info2 Is Nothing) AndAlso (info2.StorageLocation = 0)) Then
                        str = (Me.PortalSettings.HomeDirectory & info2.Folder & info2.FileName)
                        flag = True
                    End If
                End If
            End If
            If ((((num = 3) And (num2 >= 0)) And (num2 <= 2)) Or ((num = 4) And (num2 = 0))) Then
                str = Globals.LinkClickURL(str)
            ElseIf Not flag Then
                str = Globals.LinkClick(str, Me.PortalSettings.ActiveTab.TabID, -1)
            End If
            Me.SendResultURL(str)
        End Sub
 
New Post
4/18/2007 5:40 PM
 

So in the code the linkgallery takes the string from the url control and returns a

str = Globals.LinkClickURL(str) or another combination of Globals.LinkClickUrl 

So maybe this is why linking to a page on your site returns the bad link of linkclick.aspx

 

Thanks again

 
New Post
4/18/2007 6:16 PM
 

I was unable to find the updated source for the provider that is current to dnn 4.5.1  is there a location that the source can be downloaded?  I checked the media module that uses dnn url control during page load it sets the url control to show track true and if you select not to track the link it places the correct link into the content. I see through reflector that the fckeditor link gallery.aspx page load sets show track to false. Does have something to do with link tracking always being on?

 

Thanks again

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorDefault Editor FckEditor does not support friendly urlsDefault Editor FckEditor does not support friendly urls


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