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:
@@ -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']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user