mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-1447 Login as User redirecting to wrong page
This commit is contained in:
@@ -813,7 +813,12 @@ function doEditEPerson(epersonID)
|
||||
// the user is loged in as another user, we can't let them continue on
|
||||
// using this flow because they might not have permissions. So forward
|
||||
// them to the homepage.
|
||||
cocoon.redirectTo(cocoon.request.getContextPath(),true);
|
||||
var siteRoot = cocoon.request.getContextPath();
|
||||
if (siteRoot == "")
|
||||
{
|
||||
siteRoot = "/";
|
||||
}
|
||||
cocoon.redirectTo(siteRoot,true);
|
||||
getDSContext().complete();
|
||||
cocoon.exit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user