Commit 474401bb67ce28a34bf6ab01f01e765659efd333
1 parent
c4b36b0c
Fix base url for dashboard public link
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -130,7 +130,7 @@ export class DashboardService { |
130 | 130 | const publicCustomerId = publicCustomers[0].customerId.id; |
131 | 131 | let url = this.window.location.protocol + '//' + this.window.location.hostname; |
132 | 132 | const port = this.window.location.port; |
133 | - if (port !== '80' && port !== '443') { | |
133 | + if (port && port.length > 0 && port !== '80' && port !== '443') { | |
134 | 134 | url += ':' + port; |
135 | 135 | } |
136 | 136 | url += `/dashboard/${dashboard.id.id}?publicId=${publicCustomerId}`; | ... | ... |