mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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++;
|
||||
request.setAttribute(ASPECT_ID, aspectID);
|
||||
|
||||
// Get the original path, and remove the prefix if it is prepended.
|
||||
String path = request.getServletPath();
|
||||
if (path.startsWith(PREFIX))
|
||||
{
|
||||
path = path.substring(PREFIX.length());
|
||||
}
|
||||
// Get the original path
|
||||
String path = request.getSitemapURI();
|
||||
|
||||
// Build the final path to the next Aspect.
|
||||
String aspectPath = PROTOCOL + ":/" + PREFIX + aspectID + "/" + path;
|
||||
|
Reference in New Issue
Block a user