mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
Search - encode search queries (#852)
* Added Encoding to search queries. Slashes now won't cause any troubles with routing. * Changed Encoding to remain original value * fix prettier formatting
This commit is contained in:
committed by
Denys Vuika
parent
d0ff69c5dc
commit
c0416f3b46
@@ -42,11 +42,14 @@ export class SearchEffects {
|
||||
item => item.id === SearchOptionIds.Libraries
|
||||
);
|
||||
const librarySelected = !!libItem && libItem.value;
|
||||
|
||||
if (librarySelected) {
|
||||
this.router.navigateByUrl('/search-libraries;q=' + action.payload);
|
||||
this.router.navigateByUrl(
|
||||
'/search-libraries;q=' + encodeURIComponent(action.payload)
|
||||
);
|
||||
} else {
|
||||
this.router.navigateByUrl('/search;q=' + action.payload);
|
||||
this.router.navigateByUrl(
|
||||
'/search;q=' + encodeURIComponent(action.payload)
|
||||
);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user