Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

UrlTracker issue #104 #105

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Models/UrlTrackerDomain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ public class UrlTrackerDomain
public int NodeId { get; set; }
public string Name { get; set; }

public Node Node { get { return new Node(NodeId); } }
private Node _node = null;
public Node Node
{
get
{
if (_node == null)
_node = new Node(NodeId);
return _node;
}
}

public string UrlWithDomain
{
get
Expand Down
2 changes: 1 addition & 1 deletion Modules/UrlTrackerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static void UrlTrackerDo(string callingEventName, bool ignoreHttpStatusCode = fa
string fullRawUrl;
string previousFullRawUrlTest;
string fullRawUrlTest;
fullRawUrl = previousFullRawUrlTest = fullRawUrlTest = string.Format("{0}{1}{2}{3}", request.Url.Scheme, Uri.SchemeDelimiter, request.Url.Host, request.RawUrl);
fullRawUrl = previousFullRawUrlTest = fullRawUrlTest = string.Format("{0}{1}{2}{3}", request.Url.Scheme, Uri.SchemeDelimiter, request.Url.Host, request.Url.AbsolutePath);

UrlTrackerDomain urlTrackerDomain;
do
Expand Down