Spesific Child Pages & dynamic cannonical
Hello im trying to implements 2 things:
1. im trying to implement lang on particular page, every children pages will get this lang into 'efg' but the parent get lang="en"
what i did: lang="<${currentPage.path == '/content/path1/path2/parent(/.*)?'>" (not worked)
so i put manually every path of this children one by one, like "<${currentPage.path == '/content/path1/path2/parent/child1' || '/content/path1/path2/parent/child2"... ? 'efg' : 'en'
is there any method that can fix it? so i only need to call it once?
2. im trying tomake cannonical URL base on dynamic url
for example: <link rel="cannonical" href="${currentPage.path}"> and the outputs return "/content/path1/path2/parent"
how to get real url like "www.example.com/path1/path2/parent/file.html"
Thanks in advance