Skip to content

Commit

Permalink
added: encodeUri for project name on chatbot share link
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Sep 2, 2024
1 parent 6dd386f commit 1bd1375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class NavbarComponent implements OnInit {
const simulateVisitorBtnElem = <HTMLElement>document.querySelector('.simulate-visitor-btn');
simulateVisitorBtnElem.blur();
// + '&isOpen=true'
const url = this.appConfigProvider.getConfig().widgetBaseUrl + 'assets/twp/index.html?tiledesk_projectid=' + this.project.id_project.id + '&project_name=' + this.project.id_project.name + '&role=' + this.USER_ROLE
const url = this.appConfigProvider.getConfig().widgetBaseUrl + 'assets/twp/index.html?tiledesk_projectid=' + this.project.id_project.id + '&project_name=' + encodeURIComponent(this.project.id_project.name) + '&role=' + this.USER_ROLE
window.open(url, '_blank');
}

Expand Down

0 comments on commit 1bd1375

Please sign in to comment.