web/admin: include authentik_url in enterprise link (#6304)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-07-19 17:18:31 +02:00 committed by GitHub
parent 2ac38869fe
commit 31913a620d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ export class EnterpriseLicenseListPage extends TablePage<License> {
${this.installID
? html` <a
target="_blank"
href=${`https://customers.goauthentik.io/from_authentik/purchase/?install_id=${this.installID}`}
href=${`https://customers.goauthentik.io/from_authentik/purchase/?install_id=${encodeURIComponent(
this.installID,
)}&authentik_url=${encodeURI(window.location.origin)}`}
class="pf-c-button pf-m-primary pf-m-block"
>${msg("Go to Customer Portal")}</a
>`