Skip to content

Commit

Permalink
Added support to the SearchBar component for the ".." syntax commonly…
Browse files Browse the repository at this point in the history
… used in other browsers.
  • Loading branch information
alancleary committed Feb 12, 2019
1 parent a4b6c6d commit 67ed8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/components/shared/search-bar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 67ed8ae

Please sign in to comment.