(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:
Scott Phillips
2007-12-18 00:14:42 +00:00
parent b98479ab30
commit 1001bb887a

View File

@@ -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;