Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

Remove deep linking from URL for carousel component (v1)

Avatar

Level 4

Hello,

 

I am using   /apps/core/wcm/components/carousel/v1/carousel/ as the reference

 

As per the document https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wc...

 

  • Allows deep linking into a specific panel by passing the panel id as the URL fragment

I noticed that on clicking the next or previous button using the 

data-cmp-hook-carousel="previous"
data-cmp-hook-carousel="next"

 it causes the URL to append with #panel_id

 

My requirement:

I don't need the #panel_id in URL , how to remove the deep linking .

 

I tried using window.history.pushstate , but this show up  #panel_id in the URL, then after some delay using set timeout we can remove this , but I don't need this at all to appear in the URL.

 

Could you please provide inputs as how this can be achieved.

 

Regards,

Srinivas

 

 

 

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Srinivas_Opti 
The clintlibs reposible to update hash is here :

https://github.com/adobe/aem-core-wcm-components/blob/a517a37a43007856988d02b84cb3042c62877dd8/conte... 

 

you may need to overlay this component to add your own updated clienlibs



Arun Patidar

View solution in original post

2 Replies

Avatar

Level 4

Hello,

 

Any input on this will be helpfull

 

Regards,

Srinivas

Avatar

Correct answer by
Community Advisor

Hi @Srinivas_Opti 
The clintlibs reposible to update hash is here :

https://github.com/adobe/aem-core-wcm-components/blob/a517a37a43007856988d02b84cb3042c62877dd8/conte... 

 

you may need to overlay this component to add your own updated clienlibs



Arun Patidar