same again

Former-commit-id: 91550b5df58e924196146cd4da3fd9425d1b359e
This commit is contained in:
Ben
2022-04-26 17:51:42 +01:00
parent 87cc21d9c6
commit 452f44d210

View File

@@ -30,7 +30,8 @@ class Tag extends Component {
OnRender() {
this.root.addEventListener('click', () => {
window.location.href = `/search?q=${this.state.name}`;
const query = encodeURIComponent(this.state.name);
window.location.href = `/search?q=${query}`;
});
}
}