online-go / online-go.com

Source code for the Online-Go.com web interface
https://online-go.com/
GNU Affero General Public License v3.0
1.24k stars 345 forks source link

Include a constant string in all page titles #2711

Open BenoitAverty opened 3 months ago

BenoitAverty commented 3 months ago

I would like the website to always have a constant part (for example : "OGS") in the title.

In my use case it's because I use a custom "alt-tab" behaviour that allows me to search across all my open window, and I never know what to type to find OGS because the title could be "Your Move" or "X vs. Y" or just "OGS".

I'm sure there are other use-cases for this feature, as this is inthe opquast web-quality checklist : https://checklists.opquast.com/en/web-quality-assurance/each-page-provides-a-title-that-enables-one-to-identify-the-site

This is probably not to hard to implement (I could make a pull request if someone were to point me in the right direction.

I have seen the option wich disables dynamic titles but this isn't enough because it only affects the game pages, and I could be on other parts of the site when searching for the ogs window.

Adding this string at the end of the title should not impact readability of the information already in the title.

Thanks in advance

anoek commented 3 months ago

I don't think I'd want this as a default behavior, but I wouldn't object if someone wanted to add it as something configurable.