MNTP Xpath with $current
doesn't work correct on site node itself
#17519
Labels
$current
doesn't work correct on site node itself
#17519
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.5.2
Bug summary
We have a content structure as following.
In a block used on both home page and child pages, it has a category property using MNTP and the following:
Xpath:
$site/settings
It select correct settings node as start node on child pages, but on home page, it just use root as start node.
Workaround is the following:
Xpath:
$current/ancestor-or-self::homePage/settings
or$current/ancestor-or-self::*[@level=1]/settings
I guess it is because
$site
is a placeholder forancestor
, but notancestor-or-self
Specifics
No response
Steps to reproduce
Follow steps mentioned before.
Expected result / actual result
No response
The text was updated successfully, but these errors were encountered: