# Remember the selected view / tab on homepage

**URL:** https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982
**Category:** Feature
**Created:** [29 Giugno 2014, 10:37am UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982 "2014-06-29T10:37:06Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ampburner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ampburner/32/5103_2.png) [@ampburner](https://meta.discourse.org/u/ampburner)
#### Post date: [29 Giugno 2014, 10:37am UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/1 "2014-06-29T10:37:06Z")

</div>

Users have access to a bunch of different content views on the homepage

- Latest
- New
- Unread
- Starred
- Categories
- Top

I would like to propose the following behaviour.

> Suppose a user starts out on the homepage (let’s say that the default view is “Latest”)  
> The user has a particular preference for the “Categories” view, so they click categories and from there they read some topics.
> 
> The next day, the user returns to the homepage.  
> Instead of seeing “Latest”, they now see the “Categories” view (because when they clicked categories, we stored their preference in a cookie)

**Why I think this behaviour is preferable**  
Reverting to default on the homepage (the way it works now) is a way of pushing the user in the direction of the default view. Yes, you can click categories, but the default view is the way you’re _supposed_ to use the site. Eliminating this behaviour would give the user freedom to use the system however they chose.

In some communities (the ones used to classic forum software), there can be a strong preference for the category view among the existing users (who dislike the “Latest view” because they’re not used to it)  
By introducing this feature, anyone can use whatever view they want.

---

<div class="post-metadata">

### Author: ![probus](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@probus](https://meta.discourse.org/u/probus)
#### Post date: [29 Giugno 2014, 11:39am UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/2 "2014-06-29T11:39:13Z")

</div>

I have been thinking that this should be a user preference.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [29 Giugno 2014, 11:52am UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/3 "2014-06-29T11:52:16Z")

</div>

It is already in a way isn’t it? I have my browser “bookmarked” to my preferred landing page.

---

<div class="post-metadata">

### Author: ![probus](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@probus](https://meta.discourse.org/u/probus)
#### Post date: [29 Giugno 2014, 12:03pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/4 "2014-06-29T12:03:52Z")

</div>

That really isn’t the same at all. You have to remember to use that bookmark, have it bookmarked on all the devices you use to access the forum and still if you click the logo it’ll take you to the “wrong” page.

---

<div class="post-metadata">

### Author: ![ampburner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ampburner/32/5103_2.png) [@ampburner](https://meta.discourse.org/u/ampburner)
#### Post date: [29 Giugno 2014, 12:25pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/5 "2014-06-29T12:25:11Z")

</div>

> [@probus](#):
>
> I have been thinking that this should be a user preference.

Agree.

However, if you make it a user preference in the sense that it would be a setting that hidden somewhere in the personal preferences menu, I reckon most users would never find that setting.

If you simply use the “last used” view, people can intuitively discover what works best for them, without have to explicitly configure any settings (easier)

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [29 Giugno 2014, 7:32pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/6 "2014-06-29T19:32:52Z")

</div>

Love this. ❤

Several power users of our Discourse installation think that `/categories` is best for new users to discover what kind of conversations are happening, but that they’ll eventually start to prefer `/latest` and after that decision, it should be the default **for those users**.

---

<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: [29 Giugno 2014, 7:34pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/7 "2014-06-29T19:34:55Z")

</div>

Having this exact same “problem” at Stack Overflow, my previous project, I can tell you that both solutions will leave about 50% of the people unhappy. Automatic can confuse people and mess up default home pages, Manual is work for the user.

This is usually a good sign that the setting should be a user preference.

There are also other topics on this here already, with lots of discussion, that reached the same overall conclusion.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [29 Giugno 2014, 7:37pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/8 "2014-06-29T19:37:07Z")

</div>

> [@codinghorror](#):
>
> There are also other topics on this here already, with lots of discussion, that reached the same overall conclusion.

This probably says something about the quality of results in the “Suggested Topics” section at the bottom of the topic page … ☹

---

<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: [12 Gennaio 2016, 10:23pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/9 "2016-01-12T22:23:07Z")

</div>

One thing you can do, as they do on [community.imgur.com](http://community.imgur.com), is make it so that the initial page is catgories, but **all subsequent clicks on the home image** take you to latest.

Here’s that code, since @ljpp asked for it, if you want to put it in Admin, Customize, CSS/HTML, `</body>` on your site:

```plaintext
<script type="text/javascript">
    require('discourse/components/home-logo').default.reopen({
        click: function(e) {
            // if they want to open in a new tab, let it so
            if (e.shiftKey || e.metaKey || e.ctrlKey || e.which === 2) { return true; }

            e.preventDefault();

            Discourse.URL.routeTo('/latest');
            return false;
        },
        linkUrl: function() {
            return Discourse.getURL('/latest');
        }.property()

    });
</script>

```

---

<div class="post-metadata">

### Author: ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)
#### Post date: [25 Gennaio 2016, 7:19pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/10 "2016-01-25T19:19:00Z")

</div>

BTW, I am very interested whether the user selectable home screen or this “remember the view” **is on the development road map?**

Me and my community love Discourse (\<10% resist after migration from SMF), but this topic keeps coming up. The Latest view serves active regulars well, but may not be very welcoming for a non-frequent visitor or a newcomer.

We are just pondering our options with the staff, them being Latest, Categories or the Imgur way.

---

<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: [25 Gennaio 2016, 8:50pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/11 "2016-01-25T20:50:51Z")

</div>

I think this has popped up enough time to say we are interested in a user option

That said its not slotted for any release quite yet

---

<div class="post-metadata">

### Author: ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)
#### Post date: [26 Gennaio 2016, 11:39am UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/12 "2016-01-26T11:39:08Z")

</div>

Excellent @sam!

While you are at it, the setting might need to be separate for Mobile and Desktop views. On limited mobile display real estate I find the Latest much more better starting point than Categories, but on the desktop things can be different.

---

<div class="post-metadata">

### Author: ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)
#### Post date: [10 Febbraio 2016, 8:09pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/13 "2016-02-10T20:09:56Z")

</div>

FYI, I ran a vote on my userbase whether we should use Latest or Categories as default. The result was 50/50, so not much help for decision making.

---

<div class="post-metadata">

### Author: ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)
#### Post date: [9 Marzo 2016, 9:47am UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/14 "2016-03-09T09:47:49Z")

</div>

Here’s an approach I can recommend to fellow Discourse admins, who have ongoing debate/concerns about the default view.

As I wrote above, after first two-three months my users were heavily split regarding the default view 50/50. That was not the end of the story however.

As the discussion regarding the views continued, couple of weeks later I **set the Categories view as default** for a week and then had **another vote**. The results changed dramatically, as Latest view crushed the Categories in votes (90/10 or so), and I started receiving requests to immediately revert back to Latest during the trial.

When we suddenly switched to Categories as default, the users quickly realized the benefits of Latest, especially in mobile. Nobody has been romanticising our decade with the SMF anymore, and have been happy campers ever since.

So to summarize:

- Run with Latest for a while, let users get used to it and out learn the old paradigms.
- Discuss the options with the community, run polls.
- If the opinion is split, do a trial run with the alternative view and run another poll.
- Profit.

---

<div class="post-metadata">

### Author: ![Akhena](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Akhena](https://meta.discourse.org/u/Akhena)
#### Post date: [14 Ottobre 2017, 6:38pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/15 "2017-10-14T18:38:19Z")

</div>

Hi Sam,  
Any news on this feature? Is it still on the roadmap?

Our community is also split between latest and categories, and this feature would definitively solve the issue.

---

<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: [14 Ottobre 2017, 8:26pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/16 "2017-10-14T20:26:37Z")

</div>

Not on the roadmap at the current time.

---

<div class="post-metadata">

### Author: ![Akhena](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Akhena](https://meta.discourse.org/u/Akhena)
#### Post date: [18 Ottobre 2017, 4:02pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/18 "2017-10-18T16:02:55Z")

</div>

Thanks for the reply @codinghorror.

If we implement something similar for our Discourse community, we will keep you updated, un case others are interested.

---

<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: [18 Ottobre 2017, 10:44pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/19 "2017-10-18T22:44:13Z")

</div>

I am putting a #pr-welcome here on a combo box in the user interface section.

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

**Default homepage**

- Latest
- Categories
- Unread
- New
- Top
- Last used (?)

By default you pick whatever the forum admin picked, but you can amend it as you see fit.

If changed then going to home page of the forum or clicking the logo will take you to your preference.

---

<div class="post-metadata">

### Author: ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)
#### Post date: [26 Ottobre 2017, 4:50pm UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/20 "2017-10-26T16:50:48Z")

</div>

[https://github.com/discourse/discourse/pull/5268](https://github.com/discourse/discourse/pull/5268)

---

<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: [16 Novembre 2017, 12:02am UTC](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/21 "2017-11-16T00:02:58Z")

</div>

Thanks, this is now merged, deployed and announced:

> [@User preference for default home page](https://meta.discourse.org/t/user-preference-for-default-home-page/74171):
>
> Users can now set their own preference for their homepage. If you’d rather land on New instead of Latest when going to forum.example.org you’ll want this setting. Head to user preferences → interface and select the home page you want Implemented per: [Remember the selected view / tab on homepage - #20 by notriddle](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982/20) heart to @notriddle for implementing

[Pagina seguente](https://meta.discourse.org/t/remember-the-selected-view-tab-on-homepage/16982.md?page=2)
