# Attachment / Upload email links now throw 404 if not logged in (SSO)

**URL:** <https://meta.discourse.org/t/attachment-upload-email-links-now-throw-404-if-not-logged-in-sso/55719>\
**Category:** Bug\
**Created:** [2017 年 1 月 13 日午後 7:14 UTC](https://meta.discourse.org/t/attachment-upload-email-links-now-throw-404-if-not-logged-in-sso/55719 "2017-01-13T19:14:51Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)\
**Post date:** [2017 年 5 月 23 日午後 1:17 UTC](https://meta.discourse.org/t/attachment-upload-email-links-now-throw-404-if-not-logged-in-sso/55719/9 "2017-05-23T13:17:48Z")

</div>

> [@techAPJ](#):
>
> Okay, so I believe you have “login required” setting enabled? If yes, an anonymous user can’t view/download that attachment because they are not logged in.

Yes, we do have the setting enabled and we appreciate that Discourse no longer allows to download the attachment without logging in. But we are still having some confusion from users that get an email notice, click on the link to download the attachment and because they weren’t already logged in are confused about what their next step should be.

I upgraded last night and the _Oops page_ is an improvement over the generic 404 we were getting before. However, I notice that **if you do login from that page, you aren’t redirected to the attachment or the post with the attachment** , instead you just land at the “root” of the site.

Has there been any thought to redirecting the user once they login to the URL that they were attempting to originally access? (I’m happy to open that as a separate feature request as I think that happens from other pages as well.)

---

_[View the full topic](https://meta.discourse.org/t/attachment-upload-email-links-now-throw-404-if-not-logged-in-sso/55719)._
