# Category homepage as default?

**URL:** <https://meta.discourse.org/t/category-homepage-as-default/78580>\
**Category:** UX\
**Created:** [January 21, 2018, 10:57am UTC](https://meta.discourse.org/t/category-homepage-as-default/78580 "2018-01-21T10:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![Chandra](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Chandra](https://meta.discourse.org/u/Chandra)\
**Post date:** [May 20, 2020, 11:55am UTC](https://meta.discourse.org/t/category-homepage-as-default/78580/23 "2020-05-20T11:55:54Z")

</div>

I will answer my own question, based on a little experimentation.

This command from rails c resets the home page view preference of all users to site default.

`UserOption.where("homepage_id IS NOT NULL").update_all(homepage_id: '')`

---

_[View the full topic](https://meta.discourse.org/t/category-homepage-as-default/78580)._
