diff --git a/DNN Platform/Providers/HtmlEditorProviders/RadEditorProvider/LinkClickUrlHandler.ashx.cs b/DNN Platform/Providers/HtmlEditorProviders/RadEditorProvider/LinkClickUrlHandler.ashx.cs index 600c2dc387d..f6ceda2ae8e 100644 --- a/DNN Platform/Providers/HtmlEditorProviders/RadEditorProvider/LinkClickUrlHandler.ashx.cs +++ b/DNN Platform/Providers/HtmlEditorProviders/RadEditorProvider/LinkClickUrlHandler.ashx.cs @@ -309,7 +309,7 @@ public override void HandleRequest() FileInfo savedFile = _fileController.GetFileById(Int32.Parse(fileID), dialogParams.PortalId); linkTrackingInfo = _urlController.GetUrlTracking(dialogParams.PortalId, string.Format("fileID={0}", fileID), dialogParams.ModuleId); - dialogParams.LinkClickUrl = string.Format("{0}{1}{2}/{3}", GetDomain(), dialogParams.HomeDirectory, savedFile.Folder, savedFile.FileName).Replace("//", "/"); + } else if (dialogParams.LinkUrl.ToLowerInvariant().Contains("linkclick.aspx")) {