Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

117
Visualizações
Call to JSON-defined link quits working when component content changes

I'm working in AEM 6.5 and have a tag that opens a modal based on the data-resource value.

<a href="#" class="modal-anchor prevent-scroll" data-resource="/legal/legal-501251/jcr:content.json">Restrictions apply</a>

However, when the user selects a different option, which loads new content, a hashtag gets called (from the href="#") instead of the data-resource.

The relevant part of my JSON looks like this:

var PROD_LIST = [
    {
        product_name: 'Product 1',
        product_img: '/content/dam/images/drawer/desktop/cf-154972.png',
        mobile_img: '/content/dam/images/drawer/mobile/cf-154972.png',
        details_link: '/content/en/legal/legal-501251/jcr:content.json',

JavaScript

var linkText = device.details_link_text ? device.details_link_text :

I'm wondering why the link works on initial page load, but after the user changes an option and new content loads, but with the exact same link, why is the "details_link" ignored?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda