Fetch browser url and split the url and get the page names and urls for parent page.
Hi Team
I would like to retrieve the current url on dispatcher and split it based on suffix and get name & url for the current parent pages.
This is the url which I am hitting, my request is to get this url and get substring after the host name like /t5/forums/postpage/board-id/adobe-experience-manager-qanda
Here Again I will split this into 5 substrings and get page name and url for each.
1. /t5 -- get page name (jcr:title) and page url
2. /forums -- get page name (jcr:title) and page url
3. /postpage-- get page name (jcr:title) and page url
4. /board-id -- get page name (jcr:title) and page url
5. /adobe-experience-manager-ganda -- get page name (jcr:title) and page url
Request you to kindly provide reference for creating such sling model.
Thanks and Regards
Prashanthi