1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 09:14:58 +02:00

Fix issue where LanguageSupportPageNames::pageNotAvailableInLanguage wasn't working properly when redirect options selected

This commit is contained in:
Ryan Cramer
2021-10-18 08:16:26 -04:00
parent c9fef983bc
commit a4555e1271
2 changed files with 19 additions and 6 deletions

View File

@@ -367,7 +367,7 @@ class PagesRequest extends Wire {
}
// check for redirect
if($this->responseCode >= 300 && $this->responseCode < 400) {
if(empty($this->redirectUrl) && $this->responseCode >= 300 && $this->responseCode < 400) {
// 301 permRedirect, 302 tempRedirect, 307 or 308
$this->setRedirectPath($info['redirect'], $info['response']);
}