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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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}`; |
|
|
|