ci: fix backend translate compile ci job (#5500)
* ci: fix backend translate compile ci job Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix redirect challenge for relative URLs Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
36bd4b1e51
commit
8ded11806a
|
@ -3,10 +3,7 @@ on:
|
|||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "/locale/"
|
||||
pull_request:
|
||||
paths:
|
||||
- "/locale/"
|
||||
- "locale/**"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
@ -24,7 +21,7 @@ jobs:
|
|||
- name: Setup authentik env
|
||||
uses: ./.github/actions/setup
|
||||
- name: run compile
|
||||
run: poetry run ./manage.py compilemessages
|
||||
run: poetry run ak compilemessages
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
id: cpr
|
||||
|
|
|
@ -38,7 +38,7 @@ export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeRes
|
|||
];
|
||||
}
|
||||
|
||||
renderURL(): string {
|
||||
getURL(): string {
|
||||
if (!this.challenge.to.includes("://")) {
|
||||
return window.location.origin + this.challenge.to;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeRes
|
|||
}
|
||||
|
||||
renderLoading(): TemplateResult {
|
||||
const url = new URL(this.challenge.to);
|
||||
const url = new URL(this.getURL());
|
||||
// If the protocol isn't http or https assume a custom protocol, that has an OS-level
|
||||
// handler, which the browser will show a popup for.
|
||||
// As this wouldn't really be a redirect, show a message that the page can be closed
|
||||
|
@ -87,7 +87,7 @@ export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeRes
|
|||
<form class="pf-c-form">
|
||||
<div class="pf-c-form__group">
|
||||
<p>${t`You're about to be redirect to the following URL.`}</p>
|
||||
<code>${this.renderURL()}</code>
|
||||
<code>${this.getURL()}</code>
|
||||
</div>
|
||||
<div class="pf-c-form__group pf-m-action">
|
||||
<a
|
||||
|
|
Reference in New Issue