a!safeLink not working as expected

As per Appian 21.1 (https://docs.appian.com/suite/help/21.1/Web_Link_Component.html) now we should be able to open the link on same tab.

I tried testing this but the link opens in new tab regardless of the value that is set to the parameter openLinkIn

Test Code in 21.1.

a!sectionLayout(
   contents: {
       a!linkField(
              links: {
                   a!safeLink(
                   label: "Safe Link",
                   uri:"">https://appian.com/",
                   openLinkIn:"SAME_TAB"
                )
            }
        )
     }
)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Absolutely! Here's a shorter solution and troubleshooting steps:

    Problem: The a!safeLink component isn't opening the link in the same tab, even with openLinkIn: "SAME_TAB" setting.

    Potential Causes:

    • Browser settings
    • Appian Caching
    • Custom code conflicts

    Troubleshooting:

    1. Try different browsers (Chrome, Firefox, Edge)
    2. Clear your browser cache.
    3. Look for any custom CSS or JavaScript that might be changing link behavior.

    Workaround:

    If none of the above works, temporarily use this workaround to force opening in a new tab:

    Code:

    a!safeLink(
    label: "Safe Link",
    uri: "">https://appian.com/",
    openLinkIn: "SAME_TAB"
    )

Reply
  • 0
    Certified Senior Developer

    Absolutely! Here's a shorter solution and troubleshooting steps:

    Problem: The a!safeLink component isn't opening the link in the same tab, even with openLinkIn: "SAME_TAB" setting.

    Potential Causes:

    • Browser settings
    • Appian Caching
    • Custom code conflicts

    Troubleshooting:

    1. Try different browsers (Chrome, Firefox, Edge)
    2. Clear your browser cache.
    3. Look for any custom CSS or JavaScript that might be changing link behavior.

    Workaround:

    If none of the above works, temporarily use this workaround to force opening in a new tab:

    Code:

    a!safeLink(
    label: "Safe Link",
    uri: "">https://appian.com/",
    openLinkIn: "SAME_TAB"
    )

Children