Cleaning up search history

This commit is contained in:
Zoe Roux 2020-12-28 18:59:24 +01:00
parent c74252c9da
commit 83f9f2ec2b

View File

@ -68,7 +68,7 @@ export class AppComponent
if (query != "") if (query != "")
{ {
event.target.classList.add("searching"); event.target.classList.add("searching");
this.router.navigate(["/search/" + query], { replaceUrl: this.router.url.startsWith("/search/") }); this.router.navigate(["/search", query], { replaceUrl: this.router.url.startsWith("/search") });
} }
else else
{ {