Skip to content

Commit 9d1b3cc

Browse files
committed
Fixed place manager tests
1 parent 5c81296 commit 9d1b3cc

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fixed place manager tests
13+
1014
## [2.0.4] - 2025-07-31
1115

1216
### Fixed

router/src/main/java/org/jboss/elemento/router/PlaceManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ private PlaceManagerStruct findPlace(String path) {
291291
}
292292
if (pms.place == null) {
293293
logger.debug("No place found for '%s'.", path);
294-
pms.place = place(path); // create a place anyway for proper 404 handling
294+
pms.place = new Place(path == null || path.trim().isEmpty() ? "/": path); // create a place anyway for proper 404 handling
295295
pms.exists = false;
296296
} else {
297297
logger.debug("Found %s", pms.place);

0 commit comments

Comments
 (0)