Sfoglia il codice sorgente

Correctly reset the url via clicks

Lucas Stadler 9 anni fa
parent
commit
c92fa70ee5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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
			}