Przeglądaj źródła

Correctly reset the url via clicks

Lucas Stadler 9 lat temu
rodzic
commit
c92fa70ee5
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      go/blog/blog.go

+ 2 - 0
go/blog/blog.go

@ -215,6 +215,8 @@ func main() {
215 215
			var tag = tagFromURL(new URL(ev.target.href));
216 216
			if (currentFilter == tag) {
217 217
				clearFilter();
218
				location.hash = "";
219
				ev.preventDefault();
218 220
			} else {
219 221
				filterTag(tag);
220 222
			}