diff --git a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/visualization/ShortURLVisualizationController.java b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/visualization/ShortURLVisualizationController.java index adfb287ee..0ff70b5e8 100644 --- a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/visualization/ShortURLVisualizationController.java +++ b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/visualization/ShortURLVisualizationController.java @@ -246,7 +246,7 @@ private VisualizationRequestHandler getVisualizationRequestHandler( private List extractShortURLParameters(VitroRequest vitroRequest) { List matchedGroups = new ArrayList(); - String subURIString = vitroRequest.getRequestURI().substring(ContextPath.getPath(vitroRequest).length()+1); + String subURIString = vitroRequest.getRequestURI().substring(vitroRequest.getContextPath().length()+1); String[] urlParams = StringEscapeUtils.ESCAPE_HTML4.translate(subURIString).split("/"); if (urlParams.length > 1