diff --git a/web/src/flow/stages/RedirectStage.ts b/web/src/flow/stages/RedirectStage.ts index 372a40886..a39420f14 100644 --- a/web/src/flow/stages/RedirectStage.ts +++ b/web/src/flow/stages/RedirectStage.ts @@ -2,7 +2,7 @@ import { BaseStage } from "@goauthentik/flow/stages/base"; import { t } from "@lingui/macro"; -import { CSSResult, TemplateResult, html } from "lit"; +import { CSSResult, TemplateResult, css, html } from "lit"; import { customElement } from "lit/decorators.js"; import AKGlobal from "@goauthentik/common/styles/authentik.css"; @@ -18,7 +18,20 @@ import { FlowChallengeResponseRequest, RedirectChallenge } from "@goauthentik/ap @customElement("ak-stage-redirect") export class RedirectStage extends BaseStage { static get styles(): CSSResult[] { - return [PFBase, PFLogin, PFForm, PFButton, PFFormControl, PFTitle, AKGlobal]; + return [ + PFBase, + PFLogin, + PFForm, + PFButton, + PFFormControl, + PFTitle, + AKGlobal, + css` + code { + word-break: break-all; + } + `, + ]; } renderURL(): string { @@ -36,7 +49,7 @@ export class RedirectStage extends BaseStage

${t`You're about to be redirect to the following URL.`}

-
${this.renderURL()}
+ ${this.renderURL()}