Skip to content

Commit 4dd1523

Browse files
clockworked247aebadirad
authored andcommitted
Rework of fix for issue #557 where URI in request to /doc API (#916)
Now matches other implementations throughout codebase which leverage encodeURIComponent()
1 parent b25d022 commit 4dd1523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quick-start/src/main/ui/app/search/search.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class SearchService {
3131
}
3232

3333
getDoc(database: string, docUri: string) {
34-
return this.get(`/api/search/doc?database=${database}&docUri=${docUri}`);
34+
return this.get(`/api/search/doc?database=${database}&docUri=${encodeURIComponent(docUri)}`);
3535
}
3636

3737
private extractData = (res: Response) => {

0 commit comments

Comments
 (0)