core: fix domain_join url generation

pull/465/head
undefined 2 years ago
parent f4eac56e92
commit 67cffe4dd1

@ -239,6 +239,7 @@ class DomainJoinApplicationsHandler extends ManageHandler {
delete this.response.body.expirations[domain.JOIN_EXPIRATION_KEEP_CURRENT]; delete this.response.body.expirations[domain.JOIN_EXPIRATION_KEEP_CURRENT];
} }
this.response.body.url_prefix = (this.domain.host || [])[0] || system.get('server.url'); this.response.body.url_prefix = (this.domain.host || [])[0] || system.get('server.url');
if (!this.response.body.url_prefix.endsWith('/')) this.response.body.url_prefix += '/';
this.response.template = 'domain_join_applications.html'; this.response.template = 'domain_join_applications.html';
} }

Loading…
Cancel
Save