---
title: "Important: The route enhancer declares no default sorting"
manual: "Academic Programs"
version: "main"
source: "Changelog/3.0/Important-RouteEnhancerKeepsTheDefaultSorting.rst"
rendered: "2026-09-27T09:40:45+00:00"
---

# Important: The route enhancer declares no default sorting {#important-1790226103}

## Description {#description}

The route enhancer in `Configuration/Yaml/Routes.yaml` maps the sorting
of the program list into the path and declares no `defaults` for its two path
variables. A variable that equals its default is left out of a generated path,
so with `defaults` of `title` and `asc` a link with the default
sorting would be generated as the page URL without arguments.

That page URL is where the content element's preset categories and sorting
apply. The program list redirects every filter submission to a URL carrying
the sorting ([Feature: Program filter selections have a URL](Feature-FilterSelectionsHaveAUrl.html#feature-1790226102)); with `defaults`, a visitor who cleared
a preset category and kept the default sorting would be sent to that page URL
and get the preset category back.

What follows from the enhancer declaring none:

-   The default sorting is generated as `/title/asc` like every other
    sorting, and the page URL without arguments stays the preset list.
-   A path with the sorting field alone, such as `/last-updated`, does
    not resolve; both segments are required.
-   A link to the list that carries no sorting at all - the action URL of the
    plugin's own form, a hand written reset link - does not enter the route
    either. It keeps its plugin arguments in the query string, with a `cHash`,
    and shows the list as the content element presets it.

The file first became usable in 2.4 ([Important: The shipped route enhancer configuration can be imported](Important-RouteEnhancerConfigurationIsValid.html#important-1787055000)), and 2.4
ships it without `defaults` as well, so the paths it generates keep resolving
after the update to 3.0.

## Affected Installations {#affected-installations}

Sites that declare their own route enhancer for the program list with
`defaults` for the sorting: they have the problem described above and should
remove the `defaults`.
