Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through j

$
0
0

Certainly I realized that Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through jquery or javascript.

 

e.g.

 

In Felix Console , in Apache Sling JCR Resource Resolver configuration I have added following mapping.

 

/content/myproject/-/

 

So If any anchor tag is there like <a href="/content/myproject/en.html"> click me </a> then it will be mapped to "/en.html" automatically.

 

But the problem is there in following scenario.

 

I have an anchor tag as follows.

 

<a href="#" id="test"> click here </a>

 

And I am assigning the href to anchor through JQUERY.

 

<script>

$("#test").attr("href","/content/myproject/en.html");

</script>

 

Ideally this should have been mapped to "/en.html".

 

But it is not mapping to "/en.html". It still shows "/content/myproject/en.html".

 

How to resolve this.

 

Thanks,

Sai


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>