# 환영 배너를 사용자 홈페이에만 표시하도록 제한

**URL:** https://meta.discourse.org/t/restrict-welcome-banner-to-users-homepage/270596
**Category:** Development
**Tags:** welcome-link-banner
**Created:** [12월 24, 2022, 11:55오후 UTC](https://meta.discourse.org/t/restrict-welcome-banner-to-users-homepage/270596 "2022-12-24T23:55:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [12월 25, 2022, 12:33오전 UTC](https://meta.discourse.org/t/restrict-welcome-banner-to-users-homepage/270596/2 "2022-12-25T00:33:56Z")

</div>

> [@Discoursenaut](#):
>
> 홈페이지에만 배너를 제한할 수 있는지 묻는 사용자가 있습니다.

네, ‘환영 링크 배너’ 설정에 있습니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/c/a/ecaadae2c3b9a71929a19e1fcede0950440d881f.png)

> [@Discoursenaut](#):
>
> 그러면 최신 게시글(latest)을 북마크로 설정해 놓으면 표시되지 않는 건가요?

사용자 자신의 프로필에서 특정 페이지(최신 게시글, 카테고리 등)를 홈으로 설정한 경우를 말씀하시는 건가요?  
그렇다면 그 임의의 페이지가 해당 사용자의 "홈페이지"로 간주되며, 따라서 환영 배너는 사용자의 새로운 홈페이지에서 표시됩니다.

사이트의 기본 홈페이지가 /categories이고, 사용자의 인터페이스 설정과 관계없이 /categories에서만 환영 배너가 표시되기를 원한다면, **표시 위치** 를 “탐색(discovery)” 또는 "전체(all)"로 설정하고 자바스크립트를 사용하여 표시하려는 페이지 외의 다른 페이지에서 환영 배너를 숨기는 방법을 고려해 볼 수 있습니다.

하지만 현재 우리가 있는 페이지(처음 로드할 때와 페이지를 변경할 때를 포함하여)를 신뢰할 수 있게 식별하여 환영 배너를 동적으로 숨기는 방법을 아직 잘 모르겠습니다.

나중에 (😴) 이 부분을 시도해 볼 수 있겠지만, 아마도 이렇게 시작해 볼 수 있을 것입니다:

> [@페이지 링크를 클릭할 때, 페이지 콘텐츠가 로드되기 전에 JavaScript를 실행하려면?](https://meta.discourse.org/t/trigger-javascript-on-clicking-any-page-link-but-before-the-page-content-loads/167970/2?u=canapin):
>
> Hey wave There’s currently no method in the Plugin-API that will allow you to fire a script before a page transition because this has not come up before as far as I recall. That said, you can leverage on the willTransition() action in the application route You would use something that like this in your theme / component // this fires after the transition api.onPageChange((url, title) =\> { console.log("after transition"); }); // this fires right before the transition api.modifyClass("r…

---

_[View the full topic](https://meta.discourse.org/t/restrict-welcome-banner-to-users-homepage/270596)._
