mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
FIX Redirect user back to the full current URL after changing subsites
This commit is contained in:
parent
73943afd5b
commit
ab24aa6d9f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user