Issue Description
On the 1.0 “Authorize access” screen, the line under the scope list breaks in the middle of ordinary words. With a redirect host of staff.example.com it renders as:
You will be sent back to staff.example.com after you si
gn in.
Cause: in resources/html-templates/login.html, .redirect-note sets word-break: break-all (lines 368 to 373 at v1.0.0; main is the same today):
break-all lets the browser break between any two letters, so it splits ordinary words, not just long host names.
Suggested fix: use overflow-wrap: anywhere instead. It wraps at spaces first and breaks inside a word only when that word cannot fit on a line, so long host names still wrap. (word-break: break-word, which .client-name already uses, does the same.) .client-host has the same break-all rule; it holds only a host name, so it matters less there.
Expected Behavior
The line wraps between words: “after you” / “sign in.” Only a host name too long for the line breaks inside itself.
Actual Behavior
Words break at whichever letter reaches the edge of the card: “si” / “gn in.” With a longer host, other words split too, for example “yo” / “u sign in.”
Reproduction Steps
- Register an OAuth client whose redirect URI host is about 17 characters long, for example
staff.example.com. - Start an authorization code sign-in for that client and sign in.
- On the “Authorize access” screen, read the “You will be sent back to … after you sign in.” line.
Where the break lands depends on the host length and the font. Any host that makes the sentence wrap shows a split inside a word.
Stalwart Version
v1.x
Installation Method
Binary (Linux)
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
Seen on a live v1.0.0 server. Reproduced with the CSS from login.html at v1.0.0 in Chrome 156 and in WebKit (Safari’s engine) on macOS 27.2; overflow-wrap: anywhere fixed it in both.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on