# דף הבית מותאם קבוצות

**URL:** https://meta.discourse.org/t/custom-homepage-for-groups/199623
**Category:** Theme component
**Created:** [7 באוגוסט,‏ 2021,‏ 8:12pm UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623 "2021-08-07T20:12:05Z")
**Posts on this page:** 1
**Showing post:** 26

<div class="post-metadata">

### Author: ![lisandro\_iaffar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisandro_iaffar/32/315816_2.png) [@lisandro\_iaffar](https://meta.discourse.org/u/lisandro_iaffar)
#### Post date: [15 במאי,‏ 2023,‏ 3:30am UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/26 "2023-05-15T03:30:40Z")

</div>

Thank you once again @Don for your fast support, and @nathank for your input 🙂  
The strong support of this community has been all in this path I have been pursuing 2 years now… :')

Both your inputs made me realize of a strategy to solve this apparent sphinx riddle. So I finally got it sorted out this way:

**Objective** :

- In desktop, send a user to a custom homepage as per his group.
- Have the forum icon linking to the categories page.
- Have a custom header “home” icon linking to the custom homepage.
- Have the same on mobile, except that the first homepage be the chat room.

**Steps** :

1. Disable “force homepage on mobile” in the “Custom Homepage” plugin, and leave only the homepage per group options active.
2. Change Logo link to redirect to full forum via (thanks @Don!):

```javascript
  <script type="text/discourse-plugin" version="1.3.0">
   api.changeWidgetSetting('home-logo', 'href', '/categories')
  </script>

```

1. Make new [header icon link](https://meta.discourse.org/t/custom-header-links-icons/86307) to redirect to custom homepage (use plain forum URL for this effect).

2. Use [this handler](https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019/34) in the case the user is on mobile:

```plaintext
  <script>
   if (window.location.pathname == "/")
   { window.location.href = "/chat";
   }
  </script>

```

This is nice in that a user can change his preference for a custom home that will be obeyed both on desktop and mobile (via the new header icon). I’m forcing chat as homepage for mobile because I assume that it will be the most recurring use-case there.

And thats it! it works like a charm 😁  
Thanks to all of you once again 🙏

---

_[View the full topic](https://meta.discourse.org/t/custom-homepage-for-groups/199623)._
