From 63b15d74a5df18793fa8b9cfabc16e74dc7a0eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Fri, 15 Feb 2019 21:24:05 +0200 Subject: [PATCH] Fix refreshing of the checks page filtered by tags. Fixes #221 --- CHANGELOG.md | 3 +++ static/js/checks.js | 2 +- templates/front/my_checks_desktop.html | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdbd80b4..c04c83fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ All notable changes to this project will be documented in this file. ### Improvements - Add the "desc" field (check's description) to API responses +### Bug Fixes +- Fix refreshing of the checks page filtered by tags (#221) + ## 1.5.0 - 2019-02-04 diff --git a/static/js/checks.js b/static/js/checks.js index 89564d7e..4e7b96a0 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -79,7 +79,7 @@ $(function () { // Update hash if (window.history && window.history.replaceState) { - var url = "/checks/"; + var url = $("#checks-table").data("list-url");; if (qs.length) { url += "?" + $.param(qs); } diff --git a/templates/front/my_checks_desktop.html b/templates/front/my_checks_desktop.html index b792f1fc..87555f25 100644 --- a/templates/front/my_checks_desktop.html +++ b/templates/front/my_checks_desktop.html @@ -2,6 +2,7 @@