Browse Source

Merge pull request #4165 from vvlladd28/bug/search/spech-character

UI: fixed text search request include reserved characters
pull/4190/head
Igor Kulikov 6 years ago
committed by GitHub
parent
commit
2548b8c023
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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 { public toQuery(): string {
let query = `?pageSize=${this.pageSize}&page=${this.page}`; let query = `?pageSize=${this.pageSize}&page=${this.page}`;
if (this.textSearch && this.textSearch.length) { if (this.textSearch && this.textSearch.length) {
query += `&textSearch=${this.textSearch}`; const textSearch = encodeURIComponent(this.textSearch);
query += `&textSearch=${textSearch}`;
} }
if (this.sortOrder) { if (this.sortOrder) {
query += `&sortProperty=${this.sortOrder.property}&sortOrder=${this.sortOrder.direction}`; query += `&sortProperty=${this.sortOrder.property}&sortOrder=${this.sortOrder.direction}`;

Loading…
Cancel
Save