Awlad Hussain
Awlad Hussain
Please merge this
> Thank you @huzzi Someone from the Core team will look into this PR soon! This issue is also on V9 and V13. Please tag it appropriately. Thank you.
Can someone please review this pr?
> Hi @huzzi, > > As I haven't heard from you since I left feedback, I have now adjusted and merged the changes. Thank you so much for your help...
I'm experiencing the same issue, any update on this?
The issue seems to be with the **ParseXPathQuery** in Umbraco.Core\Xml\UmbracoXPathPathSyntaxParser.cs in line 140 we have this logic. ``` if (nodeContextId.HasValue) { vars.Add("$current", q => { var closestPublishedAncestorId = getClosestPublishedAncestor(getPath(nodeContextId.Value)); return...
This updated code seems to work for the scenario described by @andr317c . I have not tested this in other scenarios. ``` public static string ParseXPathQuery( string xpathExpression, int? nodeContextId,...
Pull request created https://github.com/umbraco/Umbraco-CMS/pull/15159
I'm facing the same problem.