URLMAP_FALLTHROUGH no longer functional
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
The expected behavior for this variable is as follows:
- If it's set to
true(default), then 404s will behave the same way for all patterns - If
false, then URL-mapped detail pages will still match their patterns, even when they don't have a contentlet corresponding to the input (i.e., each detail page will have to handle its own 404 case)
Mark Pitely observes that DOT_URLMAP_FALLTHROUGH appears not to do anything:
I put in the following in the Config Overrides in the Maintenance/System Info:
DOT_URLMAP_FALLTHROUGH false
But it doesn’t work at all. I just get ‘404’ (/inventory/kawasaki renders, but /inventory/kasasaki goes to a 404 page.)
I did restart the entire system after putting in the Config Override.
I tested this on Demo and can confirm that setting it to false resulted in no behavior changes.
Curiously, if I set URLMAP_FALLTHROUGH false, without the DOT_ prepend, I DID notice a change in behavior, but it was not the expected one: Now, the built 404 page was no longer being used anywhere on the site, irrespective of URL pattern.
Even after I remove the variables from maintenance pane (and confirm via the System Table endpoints that they were indeed deleted), the old behavior never resumes. Tried restarting demo, flushing cache, etc. So, there's something very odd going on with this variable!
Steps to Reproduce
- Open a local test instance with the demo site
- Go to any blog page
- add some random characters to the slug to see the 404 page
- try a non-blog 404, such as
/asdfjkl - note the similarity
- go to Settings -> Maintenance -> System Info -> Config Overrides (at the bottom)
- Enter key
DOT_URLMAP_FALLTHROUGHand valuefalse - Restart demo via Maintenance -> Tools
- note the earlier links look the same
- Now try
URLMAP_FALLTHROUGHwith valuefalse - Restart, try again
- Things may look different!
- Remove the variables, restart again
- links still result as if in 12
(Note also that the only place in the codebase that I can find "URLMAP_FALLTHROUGH" is in the config.properties file, and the blame indicates that was last changed ~13 years ago.)
Acceptance Criteria
DOT_URLMAP_FALLTHROUGH should behave as indicated at the beginning of this issue's problem statement.
dotCMS Version
dotcms-core 25.08.20-01 (August 20, 2025 5:58 PM)
Proposed Objective
Quality Assurance
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://community.dotcms.com/t/urlmap-pattern-description-fallthrough/226
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior with the demo site and the Config Overrides in Maintenance/System Info, then search config.properties and the codebase for URLMAP_FALLTHROUGH and DOT_URLMAP_FALLTHROUGH. Verify both settings and their removal after restart; done means DOT_URLMAP_FALLTHROUGH false preserves URL-mapped detail-page handling while normal and nonmatching 404 behavior follows the stated expectations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100