Skip to content

Commit

Permalink
Add leading slash to paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrdoherty committed Sep 27, 2024
1 parent 190bdb9 commit dfe8e12
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public StreamingOutput getMetrics() {
@Path("/metrics/count-page-view/{clientPath:.+}")
@Produces(MediaType.APPLICATION_JSON)
public Response registerVisit(@PathParam("clientPath") String clientPath) {
LOG.trace("Registered visit to /" + clientPath);
clientPath = "/" + clientPath; // reprepend '/'
LOG.trace("Registered visit to " + clientPath);
PageViewLogger.logPageView(getWdkModel().getProjectId(), getRequestingUser(), clientPath);
return Response.noContent().build();
}
Expand Down

0 comments on commit dfe8e12

Please sign in to comment.