mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix domain_join url generation
This commit is contained in:
1 parent
f4eac56e92
commit
67cffe4dd1
1 file changed
+1
@@ -239,6 +239,7 @@ class DomainJoinApplicationsHandler extends ManageHandler {
|
||||
delete this.response.body.expirations[domain.JOIN_EXPIRATION_KEEP_CURRENT];
|
||||
}
|
||||
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';
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user