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

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
>`