mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
(Conal Tuohy) SF# 1769052 fix URI-parsing bug in AspectGenerator
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2453 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -100,12 +100,8 @@ public class AspectGenerator extends FileGenerator implements
|
|||||||
aspectID++;
|
aspectID++;
|
||||||
request.setAttribute(ASPECT_ID, aspectID);
|
request.setAttribute(ASPECT_ID, aspectID);
|
||||||
|
|
||||||
// Get the original path, and remove the prefix if it is prepended.
|
// Get the original path
|
||||||
String path = request.getServletPath();
|
String path = request.getSitemapURI();
|
||||||
if (path.startsWith(PREFIX))
|
|
||||||
{
|
|
||||||
path = path.substring(PREFIX.length());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build the final path to the next Aspect.
|
// Build the final path to the next Aspect.
|
||||||
String aspectPath = PROTOCOL + ":/" + PREFIX + aspectID + "/" + path;
|
String aspectPath = PROTOCOL + ":/" + PREFIX + aspectID + "/" + path;
|
||||||
|
Reference in New Issue
Block a user