I am looking for Apache Sling Api to build url and links. I have found a URLHandler and LinkUrl but i should install Adobe cq as bundle and this is not what i want.
Can any one recammand an API for URL? Thanks
I am looking for Apache Sling Api to build url and links. I have found a URLHandler and LinkUrl but i should install Adobe cq as bundle and this is not what i want.
Can any one recammand an API for URL? Thanks
Depending on what you want to do with the URL, you can maybe have a look at Adobes Templating Language called "HTL" or "Sightly". There you can build urls like this.
<a href="${currentPage.path @selectors='mySelector', extension='json'}>...</a>
you can also attach request parameters by generating a map either in a Java class oder JavaScript and then add the @query='myModel.requestParameterMap'
I hope this will help you.