diff --git a/lib/reporters/html.js b/lib/reporters/html.js index 7f4fa673fc..5f57279ec2 100644 --- a/lib/reporters/html.js +++ b/lib/reporters/html.js @@ -285,9 +285,9 @@ function HTML(runner, options) { function makeUrl(s) { var search = window.location.search; - // Remove previous grep query parameter if present + // Remove previous {grep, fgrep, invert} query parameters if present if (search) { - search = search.replace(/[?&]grep=[^&\s]*/g, '').replace(/^&/, '?'); + search = search.replace(/[?&](?:f?grep|invert)=[^&\s]*/g, '').replace(/^&/, '?'); } return (