# No error message by clicking on document link in notification mail

**URL:** https://meta.discourse.org/t/no-error-message-by-clicking-on-document-link-in-notification-mail/58586
**Category:** Bug
**Created:** [March 7, 2017, 8:50pm UTC](https://meta.discourse.org/t/no-error-message-by-clicking-on-document-link-in-notification-mail/58586 "2017-03-07T20:50:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![elutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elutz/32/64158_2.png) [@elutz](https://meta.discourse.org/u/elutz)
#### Post date: [March 7, 2017, 8:50pm UTC](https://meta.discourse.org/t/no-error-message-by-clicking-on-document-link-in-notification-mail/58586/1 "2017-03-07T20:50:04Z")

</div>

The following case:

1. An user receives a notification email about a topic containing a link to an uploaded document.
2. The user isn’t logged in yet.
3. He clicks on the link to the uploaded document.
4. Now he get an empty page without any hints what to do, an error message or something else, simply an empty page.

The user should at least be redirected to the login page, like if he clicks on the “View Topic” link in the notification email.

Maybe this isn’t a bug but I didn’t find the exact setting to get the wanted behaviour. I looked e.g. at “Customize” / “Text Content”.

Regards  
Lutz

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 11, 2017, 9:53pm UTC](https://meta.discourse.org/t/no-error-message-by-clicking-on-document-link-in-notification-mail/58586/2 "2017-05-11T21:53:01Z")

</div>

Can you repro this @techapj? I assume this is only an issue if “prevent anon downloads” is set in site settings?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [May 18, 2017, 5:52pm UTC](https://meta.discourse.org/t/no-error-message-by-clicking-on-document-link-in-notification-mail/58586/3 "2017-05-18T17:52:55Z")

</div>

> [@codinghorror](#):
>
> I assume this is only an issue if “prevent anon downloads” is set in site settings?

Yes, that is true. I can only repro it with setting `prevent anons from downloading files` enabled.

~~Should I go ahead and replace blank 404 page with our [generic error page](https://meta.discourse.org/xyz)?~~ PR here:

[https://github.com/discourse/discourse/pull/4876](https://github.com/discourse/discourse/pull/4876)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 20, 2017, 1:00am UTC](https://meta.discourse.org/t/no-error-message-by-clicking-on-document-link-in-notification-mail/58586/4 "2017-05-20T01:00:23Z")

</div>

This topic was automatically closed after 29 hours. New replies are no longer allowed.
