Merge pull request #459 from GNS3/Licenses-are-not-shown-when-web-ui-released-in-gns3server

Licenses are not shown when web ui released in gns3server
This commit is contained in:
piotrpekala7 2019-07-26 13:44:19 +02:00 committed by GitHub
commit d11413d10e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ export class HelpComponent implements OnInit {
) {}
ngOnInit() {
this.httpClient.get('/3rdpartylicenses.txt', {responseType: 'text'})
this.httpClient.get(window.location.href + '/3rdpartylicenses.txt', {responseType: 'text'})
.subscribe(data => {
this.thirdpartylicenses = data.replace(new RegExp('\n', 'g'), "<br />")
},