Fixed issue saving page with non-standard language #1667

This commit is contained in:
Andy Miller
2019-04-29 18:00:12 -06:00
parent 7cee46bd59
commit 42179435eb
2 changed files with 12 additions and 11 deletions

View File

@@ -631,7 +631,7 @@ class AdminBaseController
// now the first 4 chars of base contain the lang code.
// if redirect path already contains the lang code, and is != than the base lang code, then use redirect path as-is
if (Utils::pathPrefixedByLangCode($base) && Utils::pathPrefixedByLangCode($this->redirect)
&& 0 !== strpos($this->redirect, substr($base, 0, 4))
&& !Utils::startsWith($this->redirect, $base)
) {
$redirect = $this->redirect;
} else {