Pricing Blog

How to make a link always open in a new tab?

  • mohameddk_-1365253817582747658

    mohameddk_

    2 months ago

    Basically the title. It would be very useful if the link opens in a new tab in mu use case.

    The user will click on the link and would have to inevitably go back to the web app. The api for my app is slow so navigating back would not be ideal as the page would have to fetch data from the api again
  • erikbeus-1365254353312546828

    Erik Beuschau

    2 months ago

    Add an attribute to your a element with target=_blank https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target
  • plusmin-1365256411801583687

    Armand

    2 months ago

    To add to what Erik said, this is what it will look like in your editor.
    1365256411507851305-Screenshot_2025-04-25_at_16.20.30.png
  • mohameddk_-1365336569598312528

    mohameddk_

    2 months ago

    How did i not think to look there🤦‍♂️ Thank you both🤝🤝