Skip to content

Commit 3a6ba9c

Browse files
committed
Fix crawled redirects getting filenames assigned
This was causing problems when trying to create files for the paths during post-processing.
1 parent 57c2b1a commit 3a6ba9c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Unreleased
22

3+
- Fixed an issue where crawled paths with redirects could be assigned
4+
filenames.
5+
36
## 9.9.3 (2026-04-09)
47

58
- Second fix for subversion release containing wrong version number.

src/CrawledFiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static function getPathsIter(): \Iterator {
132132
);
133133

134134
foreach ( $rows as $row ) {
135-
if ( ! $row->filename ) {
135+
if ( $row->content_hash && ! $row->filename ) {
136136
$cc_path = FilesHelper::getFilePath(
137137
$static_site_path,
138138
$row->path

0 commit comments

Comments
 (0)