Virtual route for a static tag

Since there is no parameter set in this case, you just check for $tag, see the docs: Controllers | Kirby CMS


if($tag) {
  $articles = $articles->filterBy('tags', $tag, ',');
}