Version 1.4.3

February 2, 2024


  • Improved compatibility of relatedTo elements' descendants on Craft 4.3 and above.

Version 1.4.2

September 12, 2023


  • Improved compatibility of relatedTo elements' descendants on older versions of Craft and PHP.

Version 1.4.1

September 6, 2023


  • Added shorthand for the Type filter's value parameter.


  • Fixed a bug where an element's descendants were incorrectly passed to the relatedTo criteria.

Version 1.4.0

February 22, 2023


  • Added new filters for handling single and multiple Tags as relatedTo criteria.

Version 1.3.0

February 13, 2023


  • Added support for Craft 4.

Version 1.2.1

January 3, 2023


  • Restored pre v1.2.0 behaviour of the relatedTo criteria’s element key being a single element (and not an array) for Category, Entry, and URI filters (for elements without descendants).
  • Fixed a bug where relatedTo criteria might have empty array items for elements without descendants.

Version 1.2.0

August 9, 2022


  • Added new Categories, Entries, and URIs filters for handling multiple items per filter.
  • Added combineSegments configuration parameter which can be set to false to disable segment combinations in routing rules.

Version 1.1.0

May 2, 2021


  • Added a new Month filter.


  • Router now requires Craft 3.7 or later.


  • Fixed a bug where the section parameter on the entry filter type would be ignored.

Version 1.0.0

August 19, 2020


  • Added a plugin icon.


  • miranj\router\controllers\DefaultController::fetchSingle() now queries across multiple sites, along with unique().

Version 1.0.0-beta.3

February 18, 2020


  • Added a new Entry Type filter.

Version 1.0.0-beta.2

December 27, 2019


  • Added a router service.
  • Added a craft.router Twig global variable.
  • Added craft.router.params() to access all named params from the URL.
  • Added craft.router.rawParams() to access all named params (with raw values) from the URL.
  • Added craft.router.url() to build a URL out of named routes and optional params.
  • Added craft.router.urlMerge() to build a URL out of the current route and additional params.
  • Added miranj\router\services\Router.
  • Added miranj\router\services\Router::getParams().
  • Added miranj\router\services\Router::getRawParams().
  • Added miranj\router\services\Router::getUrl().
  • Added miranj\router\services\Router::getUrlMerge().


  • Fixed bug where top level URL rule (with no segments) would get registered twice.

Version 1.0.0-beta.1

June 5, 2019


  • Added Craft 3 compatibility.
  • Added shorthand for Year filter's field config.
  • Added new Date filter with support for year/month/day.