Skip to content

Commit

Permalink
#65 url initialized with LinkClick again
Browse files Browse the repository at this point in the history
  • Loading branch information
SCullman committed Sep 21, 2019
1 parent 939462c commit 76260af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DataTypes/URL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ void FillTypeColumns(int moduleId, TokenReplace objTokenReplace, PortalSettings
caption = objTokenReplace.ReplaceEnvironmentTokens(caption, row);
}
var isLink = true;
var url = "";
//Link readable by browsers
link = UrlUtil.StripURL(link);
var url = HttpUtility.HtmlEncode(Globals.LinkClick(link, portalSettings.ActiveTab.TabID, moduleId));
if (link != string.Empty)
{
switch (Globals.GetURLType(link))
Expand Down Expand Up @@ -349,7 +349,6 @@ void FillTypeColumns(int moduleId, TokenReplace objTokenReplace, PortalSettings
caption = link;
}
}
url = Globals.LinkClick(link, portalSettings.ActiveTab.TabID, moduleId);
break;

case TabType.Url:
Expand All @@ -365,7 +364,7 @@ void FillTypeColumns(int moduleId, TokenReplace objTokenReplace, PortalSettings
caption = link;
}
}
if (!field.TrackDownloads)url = link;
if (!field.TrackDownloads) url = link;
break;
}

Expand Down

0 comments on commit 76260af

Please sign in to comment.