Hi,
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...iSKmFc%3d&tabid=1011
I think it's the classic 404 .Net error :
404 Not Found The requested Url does not return any valid content. Administrators 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.
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.)
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?
Thanks
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.
Also, here's a short video that shows you how to use the Config Manager.
https://www.youtube.com/w...VcCY2yzhTZk&index=15
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.
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. 😊
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:
Awesome! Simply post in the forums using the link below and we'll get you started.