Hi @ronnie09 ,
We use Siglhty for Markup Rendering, Most of the manipulation or condition checks we do in JavaScript Code or Java Backend Code.
You can proceed with the below approach:
- In Sling Model, When we are checking for an internal( appending .html) link or external link and passing it to sightly.
- We can also pass flags true for internal and false for external to sightly.
- In Sightly use the data-sly-test tag for checking the condition, If it is true, Provide target ="_self", and for false provide target="_blank".
Hope this could help you !!!
Thanks
Shiv