Skip to content

Commit

Permalink
Fix tree node extension ref to the fullNode
Browse files Browse the repository at this point in the history
  • Loading branch information
KenticoDevTrev committed Jan 12, 2022
1 parent 83b2499 commit 97679a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static PageIdentity ToPageIdentity(this TreeNode node)
.WithPageUrlPaths()
.GetEnumerableTypedResult()
.FirstOrDefault();
return new Tuple<string, string>(DocumentURLProvider.GetUrl(node), DocumentURLProvider.GetAbsoluteUrl(node));
return new Tuple<string, string>(DocumentURLProvider.GetUrl(fullNode), DocumentURLProvider.GetAbsoluteUrl(fullNode));
} else
{
return new Tuple<string, string>(string.Empty, string.Empty);
Expand Down
2 changes: 1 addition & 1 deletion MVC/MVC/Features/Header/Header.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
</page-builder-mode>
</page-data-context>
<page-data-context initialized="false">
<vc:configuration-helper mode="@ConfigurationHelperMode.Inline" instructions="<strong>Could not find page at /MasterPage/Header</strong><br/>Please create a folder 'MasterPage' and under it add a Header page with name 'Header'." needs-attention="true" />
<vc:configuration-helper mode="@ConfigurationHelperMode.Inline" visible="true" instructions="<strong>Could not find page at /MasterPage/Header</strong><br/>Please create a folder 'MasterPage' and under it add a Header page with name 'Header'." needs-attention="true" />
</page-data-context>

0 comments on commit 97679a9

Please sign in to comment.