mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Merge pull request #344 from creative-commoners/pulls/2.0/fix-subsite-redirect
FIX Redirect user back to the full current URL after changing subsites
This commit is contained in:
commit
299f12765c
@ -296,10 +296,8 @@ class LeftAndMainSubsites extends LeftAndMainExtension
|
|||||||
return $this->owner->redirect($request->getURL(true));
|
return $this->owner->redirect($request->getURL(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect to clear the current page, retaining the current URL parameters
|
// Redirect back to the default admin URL
|
||||||
return $this->owner->redirect(
|
return $this->owner->redirect($request->getURL());
|
||||||
Controller::join_links($this->owner->Link(), ...array_values($this->owner->getURLParams()))
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Automatically redirect the session to appropriate subsite when requesting a record.
|
// Automatically redirect the session to appropriate subsite when requesting a record.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user