FIX Redirect user back to the full current URL after changing subsites

This commit is contained in:
Robbie Averill 2018-02-08 00:22:31 +13:00
parent 73943afd5b
commit ab24aa6d9f
1 changed files with 2 additions and 4 deletions

View File

@ -296,10 +296,8 @@ class LeftAndMainSubsites extends LeftAndMainExtension
return $this->owner->redirect($request->getURL(true));
}
// Redirect to clear the current page, retaining the current URL parameters
return $this->owner->redirect(
Controller::join_links($this->owner->Link(), ...array_values($this->owner->getURLParams()))
);
// Redirect back to the default admin URL
return $this->owner->redirect($request->getURL());
}
// Automatically redirect the session to appropriate subsite when requesting a record.