Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

set the default domain to the host name

Oliver Güntherfc67fd466a27
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
index 1611c8f145f..b1edd9a7d97 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
@@ -49,7 +49,7 @@ export class EETrialFormComponent {
first_name: [this.userData.first_name, Validators.required],
last_name: [this.userData.last_name, Validators.required],
email: ['', [Validators.required, Validators.email]],
- domain: [this.userData.domain, Validators.required],
+ domain: [this.userData.domain || window.location.host, Validators.required],
general_consent: [null, Validators.required],
newsletter_consent: null,
language: this.currentUserService.language