Consent screen splits words mid-word: "after you si / gn in."

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

  1. Register an OAuth client whose redirect URI host is about 17 characters long, for example staff.example.com.
  2. Start an authorization code sign-in for that client and sign in.
  3. 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

Your diagnosis matches the current source. In resources/html-templates/login.html in the server repo, .client-host (line 299) and .redirect-note (line 372) both set word-break: break-all. .client-name (line 293) uses word-break: break-word. That is why the sentence in .redirect-note can split mid-word, as in “si / gn in”.

Your suggested change is to use overflow-wrap: anywhere on .redirect-note and .client-host. The docs don’t cover this template’s CSS, so I can’t point to a documented fix. It is a template bug that a human will need to confirm and fix. Until a fix lands, you can’t change the built-in template through configuration.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

This has been fixed, we expect to release 1.0.1 in the next few hours.