# Warn (or don't) instead of error when linking to drafts

**URL:** <https://zola.discourse.group/t/warn-or-dont-instead-of-error-when-linking-to-drafts/1686>\
**Category:** Feature requests\
**Created:** [March 24, 2023, 9:08am UTC](https://zola.discourse.group/t/warn-or-dont-instead-of-error-when-linking-to-drafts/1686 "2023-03-24T09:08:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patmaddox](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/patmaddox/32/959_2.png) [@patmaddox](https://zola.discourse.group/u/patmaddox)\
**Post date:** [March 24, 2023, 9:08am UTC](https://zola.discourse.group/t/warn-or-dont-instead-of-error-when-linking-to-drafts/1686/1 "2023-03-24T09:08:48Z")

</div>

I often write draft content, and want to link to it from production content when I think of the link. I would like to have Zola either warn - or in my case just ignore - when an internal link goes to a draft. When rendering, it should not render a link, so there is no broken link in production.

Consider the below files. When I use `zola serve --drafts` it should render `published` with a link to `adraft`. When I just do `zola serve` though, it should not complain about a broken link, and not render a link at all.

This lets me link my content as I’m writing, and then publish individual pages when they are ready, and have the links all ready to go.

# published.md

```auto
+++
title = "published"
+++

this is published. it links to [a draft](@/adraft.md)

```

# adraft.md

```auto
+++
title = "a draft"
draft = true
+++

just a draft

```

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [March 26, 2023, 6:16am UTC](https://zola.discourse.group/t/warn-or-dont-instead-of-error-when-linking-to-drafts/1686/2 "2023-03-26T06:16:58Z")

</div>

That seems reasonable
