In a couple of sites I solved with donshakespeare suggestion:
<a href="[[[[+id:notempty=`~[[+id]]`]]]]">
IMPORTANT: I had to edit also default chunks... for example for the extra siblingnav I was using only property rowTpl, but I had to force also nextTpl and prevTpl to use a cleaned chunks, not the default ones...
In a template I changed from:
This didn't work...
[[*parentMenu:notempty=`
<div class="header-menu-third">
<div class="header-menu-third__title">
<a href="[[~[[*parentMenu]]? &scheme=`full`]]">[[#[[*parentMenu]].pagetitle]]</a>
</div>
<div class="header-menu-third__inner">
[[Wayfinder? &startId=`[[*parentMenu]]` &outerClass=`menu menu-slider-lt` &hereClass=`current` &level=`1` &limit=`10`]]
</div>
</div>
`]]
to
[[[[*parentMenu:notempty=`
<div class="header-menu-third">
<div class="header-menu-third__title">
<a href="~[[*parentMenu]]? &scheme=`full`">#[[*parentMenu]].pagetitle</a>
</div>
<div class="header-menu-third__inner">
Wayfinder? &startId=`[[*parentMenu]]` &outerClass=`menu menu-slider-lt` &hereClass=`current` &level=`1` &limit=`10`
</div>
</div>
`]]]]
[ed. note: tillilab last edited this post 6 years, 6 months ago.]