# Invalid items can be added to the top\_menu setting

**URL:** <https://meta.discourse.org/t/invalid-items-can-be-added-to-the-top-menu-setting/80074>\
**Category:** Bug\
**Created:** [February 8, 2018, 2:23am UTC](https://meta.discourse.org/t/invalid-items-can-be-added-to-the-top-menu-setting/80074 "2018-02-08T02:23:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [February 9, 2018, 1:40am UTC](https://meta.discourse.org/t/invalid-items-can-be-added-to-the-top-menu-setting/80074/8 "2018-02-09T01:40:00Z")

</div>

That is a small percent of what that setting does though, it lets you add “read” “posted” or “bookmarks” and reorganize tabs.

Wizard lets you pick homepage (between latest and categories) it omits “top” as an option which is probably a legit homepage in some cases.

I am adding to my list to kill all the support pain around this which has existed for many years. (and a few other settings that also share pain with this)

1. Very oddly, we don’t appear to have a proper validator for site settings that ensures a string must match a regex. We have one for string must include regex which is very different. I need this cause the regex will be `^(latest|categories|top)` combined with (2), allowing `unread` and others to be home page causes support issues, they can do that in a plugin.

2. We don’t appear to have a setting on “list” that ensures you can not add “free form” text to the selections, this is really bad cause post\_menu also would use it so you don’t add bogus stuff to post\_menu.

3. The help text is not great

I agree we have suffered here with this setting and post\_menu to a degree and want to at least remove this suffering.

---

_[View the full topic](https://meta.discourse.org/t/invalid-items-can-be-added-to-the-top-menu-setting/80074)._
