mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DS-493] Url in browser is incorrect after login
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4863 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -564,8 +564,12 @@ public class AuthenticationUtil
|
||||
|
||||
// Return the path for which this request belongs too. Only urls
|
||||
// for this path may be resumed.
|
||||
if (interruptedRequest.getServletPath() == null || interruptedRequest.getServletPath().length() == 0) {
|
||||
return interruptedRequest.getActualPath();
|
||||
} else {
|
||||
return interruptedRequest.getServletPath();
|
||||
}
|
||||
}
|
||||
|
||||
// No request was interrupted.
|
||||
return null;
|
||||
|
@@ -118,6 +118,14 @@ public class RequestInfo
|
||||
return this.servletPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the servlet path that this request is for.
|
||||
*/
|
||||
public String getActualPath()
|
||||
{
|
||||
return this.pathInfo + ((queryString == null || queryString.length() == 0) ? "" : "?"+queryString);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap an incoming request to make it look like the request that the
|
||||
* constructor was called with
|
||||
|
@@ -21,6 +21,7 @@
|
||||
|
||||
(Ben Bosman)
|
||||
- [DS-538] restricted items are being returned in OAI GetRecord method while using harvest.includerestricted.oai
|
||||
- [DS-493] Url in browser is incorrect after login
|
||||
|
||||
1.6.0 final
|
||||
===========
|
||||
|
Reference in New Issue
Block a user