# 404 from links sent via email

**URL:** <https://community.vikunja.io/t/404-from-links-sent-via-email/861>\
**Category:** Bug\
**Created:** [27 September 2022 07:12 UTC](https://community.vikunja.io/t/404-from-links-sent-via-email/861 "2022-09-27T07:12:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stonebridge8](https://community.vikunja.io/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@stonebridge8](https://community.vikunja.io/u/stonebridge8)\
**Post date:** [27 September 2022 07:12 UTC](https://community.vikunja.io/t/404-from-links-sent-via-email/861/1 "2022-09-27T07:12:11Z")

</div>

Hello,

everything works as expected here except the links sent via email. When we click on them we get 404:

 ![Screenshot_20220927_090926](https://community.vikunja.io/uploads/default/original/1X/02caca04c9f2323912b9e39231c7c7e72a220c0d.png)

The same link works as expected if I go to it by navigating via frontend.  
An example could be: [http://HOST](http://HOST):PORT/tasks/2

I noticed from the chrome inspector that before the GET it is doing an OPTIONS request that does not happen if you go directly on the link.

Can you point out if this is an exected behavior or what?  
Thanks in advance.

---

<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:** [27 September 2022 07:24 UTC](https://community.vikunja.io/t/404-from-links-sent-via-email/861/2 "2022-09-27T07:24:35Z")

</div>

What’s the link in the email?

Did you configure the frontend URL?

> **[Config options | Vikunja](https://vikunja.io/docs/config-options/#frontendurl)**

---

<div class="post-metadata">

**Author:** ![stonebridge8](https://community.vikunja.io/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@stonebridge8](https://community.vikunja.io/u/stonebridge8)\
**Post date:** [27 September 2022 08:06 UTC](https://community.vikunja.io/t/404-from-links-sent-via-email/861/3 "2022-09-27T08:06:16Z")

</div>

The link in the email is something like:

[http://IP:8000/tasks/37](http://IP:8000/tasks/37)

The API URL is something like:  
[http://IP:3456/api/v1](http://IP:3456/api/v1)

And, as said everything works as expected except go directly to tasks/list via URL

Also, if I’m on [http://IP:8000/lists/1/list](http://IP:8000/lists/1/list) and I press F5, I get 404

This is a test installation where the api has been launched like:  
./vikunja-0.19.2

and the frontend is exposed via a python server like:  
python3 -m http.server 8000

So everything has been made as simple as possible to avoid errors caused from custom setup (ssl, reverse proxy and so on). However I get the same behavior where api and frontend are behind nginx with ssl.

---

<div class="post-metadata">

**Author:** ![stonebridge8](https://community.vikunja.io/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@stonebridge8](https://community.vikunja.io/u/stonebridge8)\
**Post date:** [27 September 2022 08:50 UTC](https://community.vikunja.io/t/404-from-links-sent-via-email/861/4 "2022-09-27T08:50:20Z")

</div>

I did something in the meantime.

Apparently this fixed the issue with the reverse proxy:

> try\_files $uri $uri/ /;

That obviously not possible with the pure python server, but since the production will be with nginx, let’s say that is fixed for me.

---

<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:** [27 September 2022 14:55 UTC](https://community.vikunja.io/t/404-from-links-sent-via-email/861/5 "2022-09-27T14:55:57Z")

</div>

As you correctly figured out you need to configure rewrites for your server.
