https://discord.gg/botpress logo
open_url from carousel
# 🤝help
c
hi, i have a carousel with the code below. When I click on the button "Dettaglio", the browser opens the associated link in a new tab. I need the browser to open the carousel link on the same tab, How can I do this? Thanks
b
where is the code?
c
sorry, I forgot return { type: 'card', title: { dynamicValue:
${product.name}
, valueType: 'dynamic' }, subtitle: { dynamicValue:
Copy code
Alimentazione: ${engineText} -
        Anno: ${yearText} -
        Prezzo: ${priceText} -
        Chilometraggio: ${kmText}
, valueType: 'dynamic' }, imageUrl: { dynamicValue:
${product.carImage}
, valueType: 'dynamic' }, actions: [ { action: 'url', label: { dynamicValue: 'Dettaglio', valueType: 'dynamic' }, value: { dynamicValue:
${product.url}
, //dynamicValue:
window.location.href=${product.url};
, valueType: 'dynamic' } } }
4 Views