From 67ed8ae46bb0e347b452296df261cca67026f496 Mon Sep 17 00:00:00 2001 From: Alan Cleary Date: Tue, 12 Feb 2019 15:48:14 -0700 Subject: [PATCH] Added support to the SearchBar component for the ".." syntax commonly used in other browsers. --- client/src/app/components/shared/search-bar.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/components/shared/search-bar.component.ts b/client/src/app/components/shared/search-bar.component.ts index c888ac58..a6d91128 100644 --- a/client/src/app/components/shared/search-bar.component.ts +++ b/client/src/app/components/shared/search-bar.component.ts @@ -41,7 +41,7 @@ export class SearchBarComponent { constructor(private router: Router) { } submit(): void { - const query = this.model.query.replace(":", "/"); + const query = this.model.query.replace(":", "/").replace("..", "-"); const url = "/search/" + this.model.source.id + "/" + query; this.router.navigateByUrl(url); }