Bug 56917 - Make the UMC HTML Title configurable
Make the UMC HTML Title configurable
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-6-errata
Assigned To: Florian Best
Christian Castens
https://git.knut.univention.de/univen...
:
: 48149 55052 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-12-17 19:05 CET by Johannes Lohmer
Modified: 2024-02-12 13:52 CET (History)
4 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Lohmer univentionstaff 2023-12-17 19:05:29 CET
The message displayed in the browser title bar of the UMC tab should be configurable.

Before and during login, the title is hardcoded in the respective `index.html`.
After logging in to the UMC, the title is set to the respective UCS Server name.

In a containerized UMC Gateway this value needs to be configurable because the "server name" is an autogenerated container name with no useful meaning to the administrator.

Because this is a requirement for openDesk, we currently modify the file(s) at runtime. A better solution would be to make it configurable upstream.

The relevant file is: /management/univention-management-console/www/management/main.js
line 1306:
`window.document.title = lang.replace('{0} - {1}', [tools.status('fqdn'), window.document.title]);`

We may also want to make the title configurable in:
/management/univention-management-console/www/login/index.html
/management/univention-management-console/www/management/index.html

But this is less important because the UMC is usually accessed from the Portal while already being logged in.
Comment 2 Florian Best univentionstaff 2024-02-07 13:46:42 CET
*** Bug 55052 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2024-02-07 22:37:32 CET
The title and favicon of UMC, Portal, Self-Service, etc are now configurable via the UCR variables `umc/web/title` and `umc/web/favicon`.

univention-portal.yaml
1e799f1f2cde | feat(portal): make HTML title and favicon configurable

univention-portal (4.0.15-2)
1e799f1f2cde | feat(portal): make HTML title and favicon configurable

univention-management-console.yaml
593de9aefb43 | feat(umc): make HTML title and favicon configurable

univention-management-console (12.0.32-19)
593de9aefb43 | feat(umc): make HTML title and favicon configurable
Comment 4 Christian Castens univentionstaff 2024-02-08 12:28:52 CET
QA:
  ucr set umc/web/title=testtesttest
  ucr set umc/web/favicon=/univention/js/dijit/themes/umc/icons/16x16/udm-users-user.png

  - title and favicon configurable: OK
  - advisories: OK
Comment 6 Florian Best univentionstaff 2024-02-12 13:52:49 CET
*** Bug 48149 has been marked as a duplicate of this bug. ***