Browse Source

UI: fixed text search include reserved characters

pull/4165/head
Vladyslav_Prykhodko 5 years ago
parent
commit
ece8fcee67
  1. 3
      ui-ngx/src/app/shared/models/page/page-link.ts

3
ui-ngx/src/app/shared/models/page/page-link.ts

@ -108,7 +108,8 @@ export class PageLink {
public toQuery(): string {
let query = `?pageSize=${this.pageSize}&page=${this.page}`;
if (this.textSearch && this.textSearch.length) {
query += `&textSearch=${this.textSearch}`;
const textSearch = encodeURIComponent(this.textSearch);
query += `&textSearch=${textSearch}`;
}
if (this.sortOrder) {
query += `&sortProperty=${this.sortOrder.property}&sortOrder=${this.sortOrder.direction}`;

Loading…
Cancel
Save