With service pack 6.5.21 - Core Component 2.25.4 - Tabs and accordion component having the deep link in URL (.i.e. id is appending in URL ) | Community
Skip to main content
Level 2
July 2, 2024
Solved

With service pack 6.5.21 - Core Component 2.25.4 - Tabs and accordion component having the deep link in URL (.i.e. id is appending in URL )

  • July 2, 2024
  • 1 reply
  • 617 views

Looking for Solution to remove the deep link (.i.e. id need to remove from the ID URL ) using the service pack 6.5.21 and core component 2.25.4.

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

Hi, 

 

This feature is intended for you to have a way to "deeplink" into a specific tab or slide [1]. So, removing this functionality would require updating the JavaScript responsible for updating the URL. I believe you would need to change this file: https://github.com/adobe/aem-core-wcm-components/blob/b5e6a560f3d4c29a68313ae07b9670b265067d7a/content/src/content/jcr_root/apps/core/wcm/components/tabs/v1/tabs/clientlibs/site/js/tabs.js#L306 

 

[1].https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/tabs#deep-linking

 


Hope this helps.

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
July 2, 2024

Hi, 

 

This feature is intended for you to have a way to "deeplink" into a specific tab or slide [1]. So, removing this functionality would require updating the JavaScript responsible for updating the URL. I believe you would need to change this file: https://github.com/adobe/aem-core-wcm-components/blob/b5e6a560f3d4c29a68313ae07b9670b265067d7a/content/src/content/jcr_root/apps/core/wcm/components/tabs/v1/tabs/clientlibs/site/js/tabs.js#L306 

 

[1].https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/tabs#deep-linking

 


Hope this helps.

Esteban Bustamante
arunpatidar
Community Advisor
Community Advisor
July 3, 2024

Hi @kummari_dilipku 
Maybe you can check keepHash, and make it configurable in the component so that you disable/enable URL update for particular component

/** * Navigates to the item at the provided index and ensures the active tab gains focus * * @private * @param {Number} index The index of the item to navigate to * @param {Boolean} keepHash true to keep the hash in the URL, false to update it */

 

 

Arun Patidar