# Markdown to open link in new tab

**URL:** <https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235>\
**Category:** Ask for Help\
**Created:** [February 6, 2024, 2:32pm UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235 "2024-02-06T14:32:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![onlymatt](https://avatars.discourse-cdn.com/v4/letter/o/48db29/32.png) [@onlymatt](https://community.noloco.io/u/onlymatt)\
**Post date:** [February 6, 2024, 2:32pm UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/1 "2024-02-06T14:32:32Z")

</div>

Does noloco have a markdown format to open link in new tab? I’ve tried things like {:target=“\_blank”} and target=“\_blank” with no success. Ideally external links would all open in new tab by default but I’m trying to do this as a workaround.

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [February 6, 2024, 3:27pm UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/2 "2024-02-06T15:27:52Z")

</div>

We do!

You can append `{target=_blank}` to the end of your links

I.e.

```auto
[my link](https://noloco.io{target=_blank})

```

---

<div class="post-metadata">

**Author:** ![onlymatt](https://avatars.discourse-cdn.com/v4/letter/o/48db29/32.png) [@onlymatt](https://community.noloco.io/u/onlymatt)\
**Post date:** [February 6, 2024, 3:33pm UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/3 "2024-02-06T15:33:42Z")

</div>

> [@darragh](#):
>
> `{target=_blank}`

excellent, that works, thanks!

---

<div class="post-metadata">

**Author:** ![JCW](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/jcw/32/173_2.png) [@JCW](https://community.noloco.io/u/JCW)\
**Post date:** [March 15, 2024, 9:12am UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/4 "2024-03-15T09:12:31Z")

</div>

Is it also possible to use this for website links in records when clicking on stored links? Does not seem to work there.

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [March 15, 2024, 9:24am UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/5 "2024-03-15T09:24:24Z")

</div>

Can you clarify the question @JCW ? What I’ve mentioned above is purely for Markdown text

---

<div class="post-metadata">

**Author:** ![JCW](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/jcw/32/173_2.png) [@JCW](https://community.noloco.io/u/JCW)\
**Post date:** [March 15, 2024, 10:42am UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/6 "2024-03-15T10:42:44Z")

</div>

Yes I wondered if there is a possibility to open links in new tabs when clicking on a link. Outside of fields that support markdown. So let’s say I have a field with website links and when a user clicks on a link by default the site opens in another tab. This is to ensure the noloco application remains open in the original tab.

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [March 15, 2024, 10:51am UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/7 "2024-03-15T10:51:32Z")

</div>

Do you mean when you’re displaying a field as a link? I believe we have a separate option for that actually

---

<div class="post-metadata">

**Author:** ![onlymatt](https://avatars.discourse-cdn.com/v4/letter/o/48db29/32.png) [@onlymatt](https://community.noloco.io/u/onlymatt)\
**Post date:** [March 15, 2024, 11:16am UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/8 "2024-03-15T11:16:46Z")

</div>

I use a formula to achieve this. My users can enter the link text and URL and the formula builds the markdown. I display that markdown link wherever desired.

```auto
IF({Client link},
IF({Product},"["&{Product}&"]"&"("&{Client link}&"{target=_blank})"&" "&{Additional Info},
IF({Client link},"<"&{Client link}&"{target=_blank}>",Product&" "&{Additional Info})),Product&" "&{Additional Info})

```

---

<div class="post-metadata">

**Author:** ![JCW](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/jcw/32/173_2.png) [@JCW](https://community.noloco.io/u/JCW)\
**Post date:** [March 22, 2024, 3:27pm UTC](https://community.noloco.io/t/markdown-to-open-link-in-new-tab/235/9 "2024-03-22T15:27:45Z")

</div>

Thank you very much for this workaround! @onlymatt
