mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-02 22:00:45 +01:00
Fix redirect for new pages
This commit is contained in:
@@ -894,6 +894,9 @@ class AdminController
|
||||
if (method_exists($obj, 'unsetRouteSlug')) {
|
||||
$obj->unsetRouteSlug();
|
||||
}
|
||||
if (!$obj->language()) {
|
||||
$obj->language($this->grav['session']->admin_lang);
|
||||
}
|
||||
$this->setRedirect('/' . $obj->language(). '/admin/' . $this->view . $obj->route());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user