Skip to content

Commit cf7e47a

Browse files
authored
fix(submission): referer not correctly set when on a subpage
1 parent 91b73b1 commit cf7e47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Models/FormPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function initSubmission(): SubmissionPage
226226
// if the referer is from the same site, we can assume
227227
// a "safe" PRG redirect
228228
if ($siteHost === $path->host()) {
229-
$referer = $path->path();
229+
$referer = $path->path()->toString();
230230
}
231231
}
232232

0 commit comments

Comments
 (0)