# Como os usuários podem se cadastrar ou fazer login no fórum ao encontrar "página não encontrada"?

**URL:** https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945
**Category:** UX
**Created:** [20 Junho , 2019 22:37 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945 "2019-06-20T22:37:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![debryc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/debryc/32/101652_2.png) [@debryc](https://meta.discourse.org/u/debryc)
#### Post date: [20 Junho , 2019 22:37 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945/1 "2019-06-20T22:37:15Z")

</div>

When someone gets onto page not found, they get a message that the page doesn’t exist or is private. I want to provide additional information to help people find a private page by asking them to sign up or log in to the forum.

I can just change the text, but I don’t see the log in and sign up buttons on this page. I also tried changing the text to include the links, but saw that doesn’t work.

Any suggestions? Is there a way to make sure these buttons are available?

 ![Screenshot%20of%20Google%20Chrome%20(6-20-19%2C%206-24-41%20PM)](https://global.discourse-cdn.com/meta/original/3X/7/3/739a6f20212eb687e6b50a917c41d8c2cdd79395.png)

---

<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: [20 Junho , 2019 23:58 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945/2 "2019-06-20T23:58:14Z")

</div>

It does seem weird we suppress _everything_ on the right hand side when rendering a 404 @sam..

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/a/6a87e812e697f9c3bcc2999f72978ab6acb42635.png)

I agree for perf reasons we probably don’t want to render everything over there but it’s so far to the other extreme now, rendering total nothingness.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [21 Junho , 2019 00:00 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945/3 "2019-06-21T00:00:47Z")

</div>

The trouble is that we need the full JS kaboodle to render that correctly according to whatever theme/plugin is in place.

But maybe we try to see how much mileage we get from hardcoding the HTML in that section and just forcing it to redirect somewhere on click. CSS is still sent down so at least theme CSS should be respected here which gives customizers a bit of a way out.

---

<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: [21 Junho , 2019 00:01 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945/4 "2019-06-21T00:01:42Z")

</div>

Mainly I am thinking the argument for putting a “sign up” and “log in” here is quite strong.. because @debryc is right, if you hit this 404 page due to insufficient permissions, where is the call to action to “fix” the problem and log in? 🤔

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [21 Junho , 2019 00:03 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945/5 "2019-06-21T00:03:12Z")

</div>

Lets try that … we have static routes for “sign up” and “log in” … @techAPJ can you lift the HTML for the “anon” case.

Logged on users should still get blank for now.

---

<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: [8 Julho , 2019 23:47 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945/7 "2019-07-08T23:47:03Z")

</div>

Realizado via (para usuários anônimos):

> <https://github.com/discourse/discourse/commit/324e182842b29cbc2917848d262e2f840af990ff>

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [14 Julho , 2019 01:19 UTC](https://meta.discourse.org/t/how-can-users-sign-up-for-or-log-into-the-forum-when-they-encounter-page-not-found/120945/8 "2019-07-14T01:19:05Z")

</div>


