'Directory' not able to be used as a Custom Header Link label

Have been looking at this for less than hour so hopefully its something dumb. but i cannot add a custom link that says “Directory”… Ive used this theme component with no issues for months, but i went to update some wording today and ran into this problem that doesnt seem to make sense.

I added this as the middle field in the custom header link settings:
Directory, Users within the community, /u?period=all, vdo, self, keep

and saw this:

Screen Shot 2020-07-29 at 1.40.31 PM
When i replaced that with this:

Directorz, Users within the community, /u?period=all, vdo, self, keep

it showed up:

Screen Shot 2020-07-29 at 1.41.09 PM

is “Directory” some type of special word in Discourse somewhere?

  • Reproduced on themes with no other Theme components enabled
  • Reproduced on a forum with no plugins installed

i cant think of a logical reason why this would happen so hopefully im just overlooking something, but can anyone reproduce this and/or know something about this odd behavior.

EDIT

i see now theres a directory class in the common css that adds a margin… anything we can do in the theme component to help against class name overrides, maybe adding a suffix to the class like directory-custom-header-link?

EDIT 2
PR here

3 Likes

PR merged thanks! :+1:

4 Likes