I have following situation
| sling:alias = mytesten
sling:alias = mytestfr
with these alias set i am able to access /content/xyz/fr/application/mytestfr.html
I also have alias for application under fr node set to myapplicationfr
Hence i am able to access /content/xyz/fr/myapplicationfr/mytestfr.html as well.
However, when selecting the page using pagefield component in the dialog which would show the pages to select, the url which gets linked is only /content/xyz/fr/application/mytestfr.html instead of /content/xyz/fr/myapplicationfr/mytestfr.html
Has any one faced this situation of not able to resolve the sling:alias for parent pages in the path for a CTA?
The property sling:alias may be set on any resource to indicate an alias name for the resource. For example the resource /content/visitors may have the sling:alias property set to besucher allowing the resource to be addressed in an URL as /content/besucher as well as the original path /content/visitors.
So you will not able to directly browse alias path using pathfield from dialog, you need to explicitly add alias path the way you want to have it for CTA.
Hope this helps.
I do have sling:alias in the path /content/xyz/fr/application/test.html
test -> mytestfr as sling:alias
application -> myapplicationfr as sling:alias
However pagefield component is able to resolve only the last path i.e test for alias and not for application
Any views or you have come across this situation?