core: use domain.host for default

This commit is contained in:
undefined committed 2021-05-02 14:30:53 +08:00
1 parent cc0fc9e5b3
commit 90579a81ed
7 files changed
+13 -7

No files matched your search

+1 -1
View File
@@ -219,7 +219,7 @@ class DomainJoinApplicationsHandler extends ManageHandler {
if (!this.response.body.joinSettings) {
delete this.response.body.expirations[domain.JOIN_EXPIRATION_KEEP_CURRENT];
}
this.response.body.url_prefix = system.get('server.url');
this.response.body.url_prefix = (this.domain.host || [])[0] || system.get('server.url');
this.response.body.path = [
['Hydro', 'homepage'],
['domain', null],