Skip to content
Snippets Groups Projects
Commit 0b78253f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13779 TIME 1:30 fix server uri

(cherry picked from commit c5eb8cf1)
parent 7540e8b6
Branches
Tags
No related merge requests found
Showing
with 8 additions and 1 deletion
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -170,9 +170,16 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD
this.http.get(`../../rest/onlyOffice/configuration`).pipe(
tap((data: any) => {
if (data.enabled) {
const serverUriArr = data.serverUri.split('/');
const protocol = data.serverSsl ? 'https://' : 'http://';
const domain = data.serverUri.split('/')[0];
const path = serverUriArr.slice(1).join('/');
const port = data.serverPort ? `:${data.serverPort}` : ':80';
this.onlyOfficeUrl = `${protocol}${data.serverUri}${port}`;
const serverUri = [domain + port, path].join('/');
this.onlyOfficeUrl = `${protocol}${serverUri}`;
this.appUrl = data.coreUrl;
resolve(true);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment