DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

LinkClicks doesn't work anymore after upgrade

You are not authorized to post a reply.

New Around Here


    It seems that some old links using LinkClick in html modules doesn't work anymore after I upgraded DNN from 7.4.2 to 9.13.
    It gives me a 404 error. The URL is something like that: https://my.website.fr/Lin...Fc%3d&tabid=1011

    I think it's the classic 404 .Net error :

    404 Not Found
    The requested Url does not return any valid content.
    Change this message by configuring a specific 404 Error Page or Url for this website.

    I tried to fix a link with selecting the file again but I can't manage to get a LinkClick URL. Maybe it's because I don't use secured folders.
    I don't know why those links use linkclick URL instead of direct links. Maybe the admin has set the statistics on the downloads.

    Thanks in advance for your help.

    Veteran Member

      Yes, the most common scenario to use LinkClick is when the file is in a secured folder.  However, some modules also re-purposed this feature to create links that could be tracked, such as the Links module.  It does both.  If the link doesn't need to use LinkClick anymore, I'd suggest just recreating the link using the respective tool(s) in the module you're using.  (Or get the link from the file/asset manager page.)  

      New Around Here

        This problem could concern more than 150 html modules in this website.

        I made tests and it seems that, in DNN7, the HTML module coud create this type of links when the user create a link to one of the website pages. It's not need to enable the logs feature.

        I tried to debug the process (with Visual Studio) and my conclusion is that my DNN doesn't notice that the targeted URL contains the LinkClick keyword.
        I looked at https://www.dnnsoftware.c...e/posts/threadpage/2 and https://dnncommunity.org/forums/aft/3877. I also checked if the web[dot]config could be the cause but with no success. The LinkClickHandler seems to be ok.

        Do you have any pointers on what I'm missing?


        Veteran Member

          Check the web(dot)config file in the root of the website.  You should find a line of code that looks similar to the example below.  

          <add name="LinkClickHandler" path="LinkClick.aspx" verb="*" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke" preCondition="integratedMode" />

          Also, here's a short video that shows you how to use the Config Manager.  


          New Around Here

            I think I've found the cause: those links have been created with the old html module which allowed to enable navigation statistics.
            Then those contents may have been moved to another page and it didn't affect the linkclicks. Finaly users have deleted the source page.

            I tried to make the same experience with the link module and it seems that the links take into account the current page.

            With DNN 9.13, the advanced URL rewriter checks if the targeted tabid exists (line 2380 more or less). If the page doesn't exist anymore, DNN will show the 404 page instead of send the targeted file.

            I don't know if it's a bug.
            If yes, is it a html module bug or a DNN bug? I think DNN doesn't need to check if the targeted tabid exists in case of a linkclick URL.
            Maybe there are some use case which could explain this check.

            Veteran Member

              That's a great question... Is it a bug?  I think so.  It sounds like someone made an update without thinking of the tracking use case using LinkClick, but that's purely a guess. 😊 

              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

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

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. 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.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved