From 0dc78825195e67f95ad9786e18b9f99cc4d04ee7 Mon Sep 17 00:00:00 2001 From: robinsowell Date: Wed, 3 Dec 2025 16:41:37 -0500 Subject: [PATCH 1/2] The behavior of strict_urls in the case of page indicators was unclear Came up in support as confusing and I'd agree. --- docs/control-panel/settings/template.md | 2 ++ docs/general/system-configuration-overrides.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/control-panel/settings/template.md b/docs/control-panel/settings/template.md index a3922477b..13241fcba 100755 --- a/docs/control-panel/settings/template.md +++ b/docs/control-panel/settings/template.md @@ -25,6 +25,8 @@ If you wish to extend this to the second segment, requiring a valid template, th Our official recommendation is that users **enable** Strict URLs, as doing so makes the path to your content more precise, allows more relevant 404 pages, and does not allow your content to be shown with variances in the URL structure. However, for legacy reasons, Strict URLs are disabled by default. +NOTE: **Note:** The pagination indicator Px is considered a valid first segment and will not trigger a 404 in order to allow pagination on the index page. Thus https://example.com/P5 will not trigger a 404 withe strict_urls enabled. + ### 404 page This determines which template should be displayed when someone tries to access an invalid URL. If you choose "None", a standard 404 message and server header will be shown. diff --git a/docs/general/system-configuration-overrides.md b/docs/general/system-configuration-overrides.md index 88d13f3a9..7a6d696d4 100755 --- a/docs/general/system-configuration-overrides.md +++ b/docs/general/system-configuration-overrides.md @@ -2987,6 +2987,8 @@ Example Usage: $config['strict_urls'] = 'n'; +NOTE: **Note:** The pagination indicator Px is considered a valid first segment and will not trigger a 404 in order to allow pagination on the index page. Thus https://example.com/P5 will not trigger a 404 withe strict_urls enabled. + **Also found in CP:** `Settings --> Template Settings`: [Enable Strict URLs](control-panel/settings/template.md#enable-strict-urls) ## `template` From a998f25a3fa767eb30456b2d7e2a6dbdac896d08 Mon Sep 17 00:00:00 2001 From: robinsowell Date: Wed, 3 Dec 2025 17:16:02 -0500 Subject: [PATCH 2/2] Tweaking for added clarity and because I can't spell. --- docs/control-panel/settings/template.md | 2 +- docs/general/system-configuration-overrides.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/control-panel/settings/template.md b/docs/control-panel/settings/template.md index 13241fcba..1e7419011 100755 --- a/docs/control-panel/settings/template.md +++ b/docs/control-panel/settings/template.md @@ -25,7 +25,7 @@ If you wish to extend this to the second segment, requiring a valid template, th Our official recommendation is that users **enable** Strict URLs, as doing so makes the path to your content more precise, allows more relevant 404 pages, and does not allow your content to be shown with variances in the URL structure. However, for legacy reasons, Strict URLs are disabled by default. -NOTE: **Note:** The pagination indicator Px is considered a valid first segment and will not trigger a 404 in order to allow pagination on the index page. Thus https://example.com/P5 will not trigger a 404 withe strict_urls enabled. +NOTE: **Note:** The pagination indicator, upper-case P#, is considered a valid first segment and will not trigger a 404 in order to allow pagination on the index page. Thus https://example.com/P5 will not trigger a 404 with strict_urls enabled. ### 404 page diff --git a/docs/general/system-configuration-overrides.md b/docs/general/system-configuration-overrides.md index 7a6d696d4..6f80b058c 100755 --- a/docs/general/system-configuration-overrides.md +++ b/docs/general/system-configuration-overrides.md @@ -2987,7 +2987,7 @@ Example Usage: $config['strict_urls'] = 'n'; -NOTE: **Note:** The pagination indicator Px is considered a valid first segment and will not trigger a 404 in order to allow pagination on the index page. Thus https://example.com/P5 will not trigger a 404 withe strict_urls enabled. +NOTE: **Note:** The pagination indicator, upper-case P#, is considered a valid first segment and will not trigger a 404 in order to allow pagination on the index page. Thus https://example.com/P5 will not trigger a 404 with strict_urls enabled. **Also found in CP:** `Settings --> Template Settings`: [Enable Strict URLs](control-panel/settings/template.md#enable-strict-urls)