# Variable to use for copy URL

**URL:** <https://community.vikunja.io/t/variable-to-use-for-copy-url/343>\
**Category:** Support\
**Created:** [7 September 2021 16:09 UTC](https://community.vikunja.io/t/variable-to-use-for-copy-url/343 "2021-09-07T16:09:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TC2021](https://community.vikunja.io/letter_avatar_proxy/v4/letter/t/f04885/32.png) [@TC2021](https://community.vikunja.io/u/TC2021)\
**Post date:** [7 September 2021 16:09 UTC](https://community.vikunja.io/t/variable-to-use-for-copy-url/343/1 "2021-09-07T16:09:39Z")

</div>

Hello.

I have Vikunja API and frontend running in separate dockers… Everything is working just fine but the “copy URL” for attachments in a task doesn’t include the domain name… For example, if I hit copy URL, I get “/api/v1/tasks/24/attachments/11”… which doesn’t work until I add the url before it manually…

I have the variable VIKUNJA\_SERVICE\_FRONTENDURL: [https://some.example.com](https://some.example.com) set and still, the copy URL for attachments doesn’t include the domain name portion… any ideas?

Thanks in advance.  
T.

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [7 September 2021 17:43 UTC](https://community.vikunja.io/t/variable-to-use-for-copy-url/343/2 "2021-09-07T17:43:49Z")

</div>

That’s a feature. The attachment URLs only work behind authentication through the frontend. The intended use for the URL is to paste it in a text to render it as an image - when rendering the text, it will figure that out automatically and display it as an image.

What’s your use case for the URL? Maybe we can go from t

---

<div class="post-metadata">

**Author:** ![TC2021](https://community.vikunja.io/letter_avatar_proxy/v4/letter/t/f04885/32.png) [@TC2021](https://community.vikunja.io/u/TC2021)\
**Post date:** [7 September 2021 17:47 UTC](https://community.vikunja.io/t/variable-to-use-for-copy-url/343/3 "2021-09-07T17:47:54Z")

</div>

Hey kolaente, thanks for getting back to me… It’s more or less to view the document in the browser rather than download it…

It would be cool to have the link open a new tab just to view in browser…
