# 로그인 시 존재하지 않는 알림 페이지로 리다이렉트됨

**URL:** https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718
**Category:** Support
**Created:** [4월 29, 2020, 6:31오전 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718 "2020-04-29T06:31:14Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![FrankVolkel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frankvolkel/32/178630_2.png) [@FrankVolkel](https://meta.discourse.org/u/FrankVolkel)
#### Post date: [4월 29, 2020, 6:31오전 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/1 "2020-04-29T06:31:14Z")

</div>

안녕하세요, 디스코스를 처음 사용해 보는 사용자입니다.

현재 2.5.0.beta3 버전을 사용 중이며, 관리자 설정을 통해 사용하지 않는 기능(배지, 개인 메시지 등)을 비활성화하기 위해 여러 항목을 수정했습니다. 코드나 원시 설정에는 변경 사항을 넣지 않았으며, SSO도 사용하지 않습니다.

알고 보니, 로그아웃 후 다시 로그인하면 /notifications?recent=true&limit=5 페이지로 리다이렉트되며, 해당 페이지에는 "죄송합니다! 해당 페이지가 존재하지 않거나 비공개입니다."라는 메시지가 표시됩니다.

이 동작을 제어하는 문제 있는 설정을 찾을 수 없었습니다. 제 계정의 '기본 홈페이지’는 '카테고리’로 설정되어 있습니다. 여러 계정으로 시도해 보았지만 모두 동일한 동작을 보였습니다.

도움을 주시면 감사하겠습니다!

---

<div class="post-metadata">

### Author: ![rogerco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerco/32/161338_2.png) [@rogerco](https://meta.discourse.org/u/rogerco)
#### Post date: [4월 29, 2020, 4:42오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/2 "2020-04-29T16:42:27Z")

</div>

방금 2.5.0.beta3로 업그레이드했는데 동일한 문제가 발생합니다.  
로그인 시 선택된 사용자 설정의 홈 페이지가 아닌 `notifications?recent=true&limit=5`로 리디렉션되어 404 오류가 발생합니다.

사용자의 알림에 대한 올바른 URL은 `/u/username/notifications?recent=true&limit=5`여야 합니다.

하지만 어쨌든 사용자 설정을 가져와야 합니다. 로그인 시 사용자 ID(사용자 이름으로 로그인)가 가져와지지 않는 것으로 보이며, 404 페이지를 거친 후에는 실제로 로그인된 상태입니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 29, 2020, 5:03오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/3 "2020-04-29T17:03:12Z")

</div>

정말 이상하네요. 저는 방금 사이트를 업그레이드했는데 그런 문제가 없어요.

이런 문제를 일으킬 수 있는 플러그인이나 테마를 사용 중이신가요? `safe-mode`로 해결이 될까요?

사이트 URL을 공유해 주실 수 있나요?

---

<div class="post-metadata">

### Author: ![rogerco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerco/32/161338_2.png) [@rogerco](https://meta.discourse.org/u/rogerco)
#### Post date: [4월 29, 2020, 5:13오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/4 "2020-04-29T17:13:53Z")

</div>

이 문제를 일으킬 수 있는 테마나 컴포넌트는 없는 것으로 알고 있습니다. 2.4에서 2.5로 업그레이드할 때 깨지던 커스텀 컴포넌트 하나를 비활성화해야 했지만, 이는 무관한 문제입니다(그룹 레이아웃을 목록으로 변경하는 기능이었음).

`safe-mode`가 무엇이며 어떻게 사용하나요?

사이트 URL은 공개 접근이 불가능하므로 도움이 되지 않습니다.

---

<div class="post-metadata">

### Author: ![rogerco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerco/32/161338_2.png) [@rogerco](https://meta.discourse.org/u/rogerco)
#### Post date: [4월 29, 2020, 5:46오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/5 "2020-04-29T17:46:39Z")

</div>

safe-mode를 사용해도 차이가 없어 보이지만, 다음 지침을 따랐음에도 실제로 [safe mode](https://meta.discourse.org/t/53504?silent=true)가 활성화되었는지 확신이 서지 않습니다.

> [@Using Safe Mode to troubleshoot issues with themes and plugins](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504):
>
> bookmark This guide explains how to use Discourse’s [Safe Mode](https://meta.discourse.org/t/53504?silent=true) to troubleshoot issues with themes and plugins. person_raising_hand Required user level: All users Discourse offers a “JavaScript [Safe Mode](https://meta.discourse.org/t/53504?silent=true)” that allows any user to isolate the root cause of JavaScript issues caused by plugins, themes, or theme components. This feature is particularly useful for troubleshooting problems on your Discourse site. Accessing [Safe Mode](https://meta.discourse.org/t/53504?silent=true) To access [Safe Mode](https://meta.discourse.org/t/53504?silent=true), follow these steps: Open a new browse…

단순히 사이트 URL 끝에 `/?safe_mode`를 추가했을 때 옵션 페이지가 표시되지 않고 로그인 페이지만 다시 로드되었을 뿐만 아니라, `/?safe_mode=no_custom&no_plugins&only_official`을 사용했을 때도 동일한 증상이 나타났으며 사이트에서 어떤 차이도 보이지 않았습니다.

---

<div class="post-metadata">

### Author: ![Nikki\_Locke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nikki_locke/32/146184_2.png) [@Nikki\_Locke](https://meta.discourse.org/u/Nikki_Locke)
#### Post date: [4월 29, 2020, 6:28오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/6 "2020-04-29T18:28:28Z")

</div>

안전 모드를 활성화할 수 있었습니다(로그인만 하면 해당 옵션이 표시되었습니다). 모든 옵션을 체크한 채로 로그아웃을 하고 다시 로그인했습니다.

로그인 후 /notifications?recent=true&limit=5 페이지로 리다이렉트되었습니다.

왜 그런가요?

왜 일관성이 없나요(때로는 올바른 위치로 이동합니다).

참고로 이 URI는 로그인 페이지의 쿠키에 포함되어 있습니다.

---

<div class="post-metadata">

### Author: ![rogerco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerco/32/161338_2.png) [@rogerco](https://meta.discourse.org/u/rogerco)
#### Post date: [4월 29, 2020, 8:36오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/7 "2020-04-29T20:36:40Z")

</div>

> [@FrankVolkel](#):
>
> 어떤 도움이라도 감사하겠습니다!

진전이 있었나요? 우리도 동일한 문제를 겪고 있습니다. 해당 문제는 한 서버에서는 발생하지만, 동일한 플러그인과 컴포넌트 구성을 가진 다른 테스트 서버에서는 발생하지 않습니다.

OAuth2 플러그인은 양쪽 서버 모두에 설치되어 있지만 현재 비활성화되어 있습니다. ~~(업그레이드 이전부터 비활성화되어 있었습니다. 문제가 있는 서버에서는 업그레이드 중 OAuth2 플러그인이 활성화되어 있었고, 업그레이드 후 비활성화되었을 가능성이 있습니다. 관리자가 작업을 수행한 순서를 확인 중입니다.~~

OAuth2는 업그레이드 중에 설치되었습니다. 이후 비활성화되어 있습니다.

OAuth2 플러그인을 설치해 두셨나요?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [4월 29, 2020, 8:51오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/8 "2020-04-29T20:51:27Z")

</div>

서브폴더에 설치하신 건가요?

---

<div class="post-metadata">

### Author: ![Nikki\_Locke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nikki_locke/32/146184_2.png) [@Nikki\_Locke](https://meta.discourse.org/u/Nikki_Locke)
#### Post date: [4월 29, 2020, 9:16오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/9 "2020-04-29T21:16:46Z")

</div>

서브폴더 설치란 무엇인가요?  
우리는 표준 설치를 사용하고 있습니다. app.yml 파일이 포함된 containers 폴더가 있고, 루트 권한으로 launcher라는 스크립트를 실행하여 Discourse를 시작합니다.

---

<div class="post-metadata">

### Author: ![erphyx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erphyx/32/178715_2.png) [@erphyx](https://meta.discourse.org/u/erphyx)
#### Post date: [4월 29, 2020, 9:17오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/10 "2020-04-29T21:17:41Z")

</div>

2.5.0.beta3로 업그레이드한 후에도 동일한 문제가 발생합니다.  
셀프호스팅 표준 설치 환경이며, 공식 플러그인만 사용 중입니다.  
Google Oauth는 설정되어 있습니다.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [4월 29, 2020, 9:22오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/11 "2020-04-29T21:22:40Z")

</div>

> [@FrankVolkel](#):
>
> `/notifications?recent=true&limit=5`로 리다이렉트되어 "Oops! That page doesn’t exist or is private."라는 메시지가 표시됩니다.

저도 테스트 설치 환경에서 이 문제가 발생하고 있음을 확인했습니다 – 또는 이와 유사한 문제가 발생하는 것 같습니다.

* * *

```plaintext
Testing: https://smoke-test.redacted.invalid/
Starting Discourse Smoke Test for https://smoke-test.redacted.invalid/
PASSED: go to site - 1119ms
PASSED: expect a log in button in the header - 266ms
PASSED: open login modal - 85ms
PASSED: login modal is open - 8ms
FAILED HTTP REQUEST TO https://smoke-test.redacted.invalid/notifications?recent=true&limit=5 Status is: 403
PAGE LOG: Failed to load resource: the server responded with a status of 403 ()
FAILED HTTP REQUEST TO https://smoke-test.redacted.invalid/logs/report_js_error Status is: 429
PAGE LOG: Failed to load resource: the server responded with a status of 429 ()
PASSED: type in credentials & log in - 363ms
PASSED: is logged in - 1606ms

```

인스펙터를 확인해 보니, 로그인 모달을 여는 즉시 `/notifications?recent=true&limit=5`에 대한 \_요청\_이 발생하지만, 리다이렉트는 일어나지 않습니다.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [4월 29, 2020, 9:28오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/12 "2020-04-29T21:28:59Z")

</div>

이것은 다음에서 온 것 같습니다.

> <https://github.com/discourse/discourse/pull/9525>
>
> Quicker jumpstart for those already familiar with the platform:
> 
> Allow dismiss…al of first notification mask from any click.
> On the dismissal click, we also need to send a "yes I saw it" confirmation
> by grabbing a batch of notifications. This prevents the dialog from appearing
> again on refresh, or other browsers and ensures we only see it once.

---

<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: [4월 29, 2020, 9:30오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/13 "2020-04-29T21:30:15Z")

</div>

음, 그래서 @featheredtoast

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [4월 29, 2020, 9:36오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/14 "2020-04-29T21:36:39Z")

</div>

간단한 수정 사항이 커밋되었습니다:

> <https://github.com/discourse/discourse/commit/8e4fea897e68e4b50e548f820dc1f1fdeeeb199d>

이 변경 사항은 약 15분 후에 tests-passed에 반영될 것입니다.

---

<div class="post-metadata">

### Author: ![erphyx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erphyx/32/178715_2.png) [@erphyx](https://meta.discourse.org/u/erphyx)
#### Post date: [4월 29, 2020, 11:01오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/15 "2020-04-29T23:01:40Z")

</div>

제가 설치한 환경에서 해당 수정 사항이 문제를 해결했음을 확인했습니다.  
빠른 대응에 감사드립니다!

---

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [4월 29, 2020, 11:03오후 UTC](https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718/16 "2020-04-29T23:03:21Z")

</div>


