Fix base url for dashboard public link
This commit is contained in:
parent
c4b36b0c6f
commit
474401bb67
@ -130,7 +130,7 @@ export class DashboardService {
|
|||||||
const publicCustomerId = publicCustomers[0].customerId.id;
|
const publicCustomerId = publicCustomers[0].customerId.id;
|
||||||
let url = this.window.location.protocol + '//' + this.window.location.hostname;
|
let url = this.window.location.protocol + '//' + this.window.location.hostname;
|
||||||
const port = this.window.location.port;
|
const port = this.window.location.port;
|
||||||
if (port !== '80' && port !== '443') {
|
if (port && port.length > 0 && port !== '80' && port !== '443') {
|
||||||
url += ':' + port;
|
url += ':' + port;
|
||||||
}
|
}
|
||||||
url += `/dashboard/${dashboard.id.id}?publicId=${publicCustomerId}`;
|
url += `/dashboard/${dashboard.id.id}?publicId=${publicCustomerId}`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user